Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Send messages to EntryNotifierService in Tpu, simpler#31962

Merged
mergify[bot] merged 5 commits intosolana-labs:masterfrom
CriesofCarrots:entry-notif-tpu-simple
Jun 6, 2023
Merged

Send messages to EntryNotifierService in Tpu, simpler#31962
mergify[bot] merged 5 commits intosolana-labs:masterfrom
CriesofCarrots:entry-notif-tpu-simple

Conversation

@CriesofCarrots
Copy link
Copy Markdown
Contributor

Problem

An alternative to #31889

#31290 adds an entry notification service, which is currently only fed from the Tvu pipeline. But leaders should also support geyser entry notifications -- this is especially useful for testing plugins on solana-test-validator, since the TestValidator is the leader for every slot.

Summary of Changes

Adds a little service to sit between PohRecorder and BroadcastStage in the Tpu pipeline. If geyser entry notifications are supported, the entry summary information is copied from the message and sent to the entry notification service. All entries are passed through unchanged to the BroadcastStage receiver.

Differs from #31889 in that entry indexes are tracked in the TpuEntryNotifier instead of PohRecorder.

Closes #31889

@CriesofCarrots CriesofCarrots requested a review from carllin June 5, 2023 04:25
@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 5, 2023

Codecov Report

Merging #31962 (fc954a5) into master (6371240) will decrease coverage by 0.1%.
The diff coverage is 9.2%.

❗ Current head fc954a5 differs from pull request most recent head c0ee5d3. Consider uploading reports for the commit c0ee5d3 to get more accurate results

@@            Coverage Diff            @@
##           master   #31962     +/-   ##
=========================================
- Coverage    81.9%    81.9%   -0.1%     
=========================================
  Files         760      761      +1     
  Lines      207543   207461     -82     
=========================================
- Hits       170048   169945    -103     
- Misses      37495    37516     +21     

Comment thread core/src/tpu_entry_notifier.rs Outdated
carllin
carllin previously approved these changes Jun 5, 2023
@CriesofCarrots CriesofCarrots added v1.16 PRs that should be backported to v1.16 automerge Merge this Pull Request automatically once CI passes labels Jun 5, 2023
@mergify mergify Bot merged commit 8416099 into solana-labs:master Jun 6, 2023
mergify Bot pushed a commit that referenced this pull request Jun 6, 2023
* Add TpuEntryNotifier to send EntryNotifications from Tpu

* Optionally run TpuEntryNotifier to send out EntrySummarys alongside BroadcastStage messages

* Track entry index in TpuEntryNotifier

* Allow for leader slots that switch forks

* Exit if broadcast send fails

(cherry picked from commit 8416099)
CriesofCarrots pushed a commit that referenced this pull request Jun 6, 2023
…t of #31962) (#31980)

Send messages to EntryNotifierService in Tpu, simpler (#31962)

* Add TpuEntryNotifier to send EntryNotifications from Tpu

* Optionally run TpuEntryNotifier to send out EntrySummarys alongside BroadcastStage messages

* Track entry index in TpuEntryNotifier

* Allow for leader slots that switch forks

* Exit if broadcast send fails

(cherry picked from commit 8416099)

Co-authored-by: Tyera <tyera@solana.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

automerge Merge this Pull Request automatically once CI passes v1.16 PRs that should be backported to v1.16

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants