Skip to content

feat: Improve blockIsEnding and shutdown of Publisher#2505

Open
ata-nas wants to merge 5 commits intomainfrom
2344-improve-blockisending-and-shutdown-of-publisher
Open

feat: Improve blockIsEnding and shutdown of Publisher#2505
ata-nas wants to merge 5 commits intomainfrom
2344-improve-blockisending-and-shutdown-of-publisher

Conversation

@ata-nas
Copy link
Copy Markdown
Contributor

@ata-nas ata-nas commented Apr 2, 2026

Reviewer Notes

  • Centralized publisher request results
  • Improvements for shutdown
    • Manager schedules shutdowns instead of forcing them
  • Send SKIP instead of END_ERROR in getActionForCurrentlyStreaming
  • Receiving an EndOfBlock for block the manager no longer needs still allows a RESEND to possibly be sent as a response

Related Issue(s)

Closes #1949
Closes #2344
Closes #2339

@ata-nas ata-nas added this to the 0.32.0 milestone Apr 2, 2026
@ata-nas ata-nas requested a review from jsync-swirlds April 2, 2026 14:50
@ata-nas ata-nas self-assigned this Apr 2, 2026
@ata-nas ata-nas added the pull request label to get past the "label required" check when no label is needed or appropriate. label Apr 2, 2026
@ata-nas ata-nas linked an issue Apr 2, 2026 that may be closed by this pull request
@codacy-production
Copy link
Copy Markdown

codacy-production bot commented Apr 2, 2026

Not up to standards ⛔

🔴 Issues 1 medium

Alerts:
⚠ 1 issue (≤ 0 issues of at least minor severity)

Results:
1 new issue

Category Results
Complexity 1 medium

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

TIP This summary will be updated as you push new changes. Give us feedback

@ata-nas ata-nas force-pushed the 2344-improve-blockisending-and-shutdown-of-publisher branch 6 times, most recently from 52d965f to 833b149 Compare April 3, 2026 10:43
@ata-nas ata-nas marked this pull request as ready for review April 3, 2026 10:46
@ata-nas ata-nas requested review from a team as code owners April 3, 2026 10:46
@ata-nas ata-nas force-pushed the 2344-improve-blockisending-and-shutdown-of-publisher branch 2 times, most recently from c5cfe40 to ba3e845 Compare April 3, 2026 11:05
Copy link
Copy Markdown
Contributor

@jsync-swirlds jsync-swirlds left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the delay reviewing this.
There are a few areas where we can make some significant improvements.

@ata-nas ata-nas force-pushed the 2344-improve-blockisending-and-shutdown-of-publisher branch from ba3e845 to 0e12892 Compare April 7, 2026 07:07
@ata-nas ata-nas requested a review from jsync-swirlds April 7, 2026 10:47
@ata-nas ata-nas force-pushed the 2344-improve-blockisending-and-shutdown-of-publisher branch from 862bf61 to e1f4e6a Compare April 7, 2026 17:05
* Centralized publisher request results
* Improvements for shutdown
  * Manager schedules shutdowns instead of forcing them
* Send SKIP instead of END_ERROR in `getActionForCurrentlyStreaming`
* Receiving an EndOfBlock for block the manager no longer needs still allows a RESEND to possibly be sent as a response

Signed-off-by: Atanas Atanasov <a.v.atanasov98@gmail.com>
@ata-nas ata-nas force-pushed the 2344-improve-blockisending-and-shutdown-of-publisher branch from e1f4e6a to 073dbda Compare April 8, 2026 07:09
Signed-off-by: Atanas Atanasov <a.v.atanasov98@gmail.com>
@ata-nas ata-nas force-pushed the 2344-improve-blockisending-and-shutdown-of-publisher branch 2 times, most recently from 5e73c3a to 7a1c3dd Compare April 8, 2026 08:42
Signed-off-by: Atanas Atanasov <a.v.atanasov98@gmail.com>
@ata-nas ata-nas force-pushed the 2344-improve-blockisending-and-shutdown-of-publisher branch from 7a1c3dd to ed9e5b0 Compare April 8, 2026 11:49
Signed-off-by: Atanas Atanasov <a.v.atanasov98@gmail.com>
Signed-off-by: Atanas Atanasov <a.v.atanasov98@gmail.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 9, 2026

Codecov Report

❌ Patch coverage is 88.32117% with 16 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
.../block/node/stream/publisher/PublisherHandler.java 87.87% 12 Missing and 4 partials ⚠️
@@             Coverage Diff              @@
##               main    #2505      +/-   ##
============================================
- Coverage     81.32%   81.23%   -0.09%     
+ Complexity     1509     1508       -1     
============================================
  Files           139      139              
  Lines          7131     7157      +26     
  Branches        754      749       -5     
============================================
+ Hits           5799     5814      +15     
- Misses         1008     1018      +10     
- Partials        324      325       +1     
Files with missing lines Coverage Δ Complexity Δ
...e/stream/publisher/LiveStreamPublisherManager.java 83.47% <100.00%> (-0.47%) 65.00 <0.00> (-1.00)
.../block/node/stream/publisher/PublisherHandler.java 88.17% <87.87%> (+1.32%) 65.00 <9.00> (-3.00) ⬆️

... and 3 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pull request label to get past the "label required" check when no label is needed or appropriate.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve blockIsEnding and shutdown of Publisher Improve Sending of BAD_BLOCK_PROOF in Manager Revisit blockIsEnding Method Usage

2 participants