-
Notifications
You must be signed in to change notification settings - Fork 16
refactor(backfill): Backfill Plugin Major Refactor And Improvements #2006
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
AlfredoG87
wants to merge
69
commits into
main
Choose a base branch
from
backfill-improvements2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
2c35bf4
refactor(backfill): add gap classification with GapType and TypedGap
AlfredoG87 a490f54
refactor(backfill): implement dual scheduler architecture
AlfredoG87 8b305fd
refactor(backfill): update plugin for dual scheduler orchestration
AlfredoG87 c00a6b2
refactor(backfill): consolidate fetcher and remove BackfillGrpcClient
AlfredoG87 178c8d4
test(backfill): add timeout annotations to prevent test hangs
AlfredoG87 db1d66f
docs(backfill): update documentation for dual scheduler architecture
AlfredoG87 48bcb8a
stylefix
AlfredoG87 474db3e
Restoring Persistence Backpressure to blocks by Encapsulating that lo…
AlfredoG87 c44f0c3
Added and improved UT coverage for new components
AlfredoG87 8fc0974
further UT improvements and deduplication
AlfredoG87 d1947f4
further UT improvements and deduplication
AlfredoG87 268768d
Codacy and spotless stylefix recommendations
AlfredoG87 0717f19
- Exposed Configuration for webClient HTTP2 tuning parameters, and se…
AlfredoG87 ba2657d
Missing Tests for PriorityHealthBasedStrategy class and some nits aro…
AlfredoG87 a7d73a9
Added mergeContiguousRanges() in BackfillFetcher.java
AlfredoG87 a3db1be
stylefix
AlfredoG87 94ee4c2
codacy nits and improved comments on TestBlockNodeServer class
AlfredoG87 5170ef8
Updated Documentation to reflect new Architecture Design
AlfredoG87 d9250bc
Improved UTs for BackfillFetcherTest and GapDetectorTest, increasing …
AlfredoG87 22dfff2
Further UT improvements and Logs QOL improvements on Messaging Facility
AlfredoG87 a85d2d3
increasing timeout on test to make it more stable since it covers man…
AlfredoG87 21209b2
added validation constants for HTTP2 Tuning Config parameters for Blo…
AlfredoG87 72b92c8
added validation constants for HTTP2 Tuning Config parameters for Blo…
AlfredoG87 34cf96c
- Used MetricsHolder pattern to simplify constructors and testing, al…
AlfredoG87 7bfa890
removed the applyJitter Method, since we don't have that many concurr…
AlfredoG87 c5f4cc4
added how the health score system works to the design doc
AlfredoG87 d11221f
extracted mergeContiguousRanges to be part of LongRange class itself.
AlfredoG87 3996216
- improved java doc wording
AlfredoG87 14b2361
- Added comment for Status Enum ordinal brittleness
AlfredoG87 ded8a6b
- improved variable name to be more explicit hwm to highWaterMark
AlfredoG87 8b6c18b
micro optimization to avoid parsing blockHeader twice on backfill pro…
AlfredoG87 bb292b7
- Config readability nit
AlfredoG87 3cc3a14
style-fix change after rebase with main.
AlfredoG87 659fc0b
codacy suggestion
AlfredoG87 ca2daf7
Fixed timeout issues found during remote e2e tests, and then digged d…
AlfredoG87 1367b03
reduce logs
AlfredoG87 cf0920a
small nits
AlfredoG87 828a200
removing dead vestigial code and going full on health based exponenti…
AlfredoG87 13f9dbc
replacing Exception instances for RuntimeException
AlfredoG87 4a45bb7
Unify detectGaps flow and fix greedy gap classification
AlfredoG87 06da7ca
Improved readability of createScheduler by extracting lambda into inn…
AlfredoG87 526f793
improved log wording pr review nit
AlfredoG87 b9c3bcc
improved backfill webClient config parameters validation, logging and…
AlfredoG87 792bb25
added more descriptive logs.
AlfredoG87 c09c94b
Added a new Edge Test Case and validation to prvent it from schedulin…
AlfredoG87 200d132
Found, Tested and Fixed yet another bug that was discovered while e2e…
AlfredoG87 86b178b
codacy suggestion
AlfredoG87 24149b7
small improvement
AlfredoG87 46a1a40
bring terms back and improved them, made them sorted and added more.
AlfredoG87 540bb8c
node_id field for future compatibility with BN AB (address book) shou…
AlfredoG87 78ca315
improved Diagram that that explains backfill internal architecture mo…
AlfredoG87 5f56af9
added additional try catch at stop to ensure a graceful shutdown
AlfredoG87 3e11e07
style fix and codacy fix
AlfredoG87 b346617
codacy fix
AlfredoG87 40c838c
small nits
AlfredoG87 a73247d
- disabled spotless on BackfillConfiguration due to known issue with …
AlfredoG87 0f274e4
PR Review suggestions
AlfredoG87 e107cae
as per jjohanes review, we should have proto files in its default fol…
AlfredoG87 27bd0ae
removing unnecessary require on module-info.java
AlfredoG87 febb305
restoring requires org.antlr.antlr4.runtime as is really needed for q…
AlfredoG87 3dd263c
use real metrics and explicit types in BackfillFetcherTest
AlfredoG87 42988cc
improve BackfillFetcherTest readability and isolation
AlfredoG87 b737359
add client reference assertion in stale connection test
AlfredoG87 ac4ada8
Test Improvements and removal of test-only method from BackfillPersis…
AlfredoG87 8299df1
fix display names and improve test clarity per PR review
AlfredoG87 bd5364a
removing redundant test
AlfredoG87 b69b335
Address PR review feedback: remove redundant config test, clarify tes…
AlfredoG87 c4739f9
codacy suggestion
AlfredoG87 6989497
Address jsync PR review feedback (latest)
AlfredoG87 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,6 +7,13 @@ | |
| import com.swirlds.config.api.validation.annotation.Min; | ||
| import org.hiero.block.node.base.Loggable; | ||
|
|
||
| // It is known that spotless does not format this file well | ||
| // We use the https://github.com/palantir/palantir-java-format formatter. | ||
| // @ConfigProperty(defaultValue = "10") – force a line break after the annotation. | ||
| // It is a non-configurable format without complete documentation | ||
| // we might consider switching to another formatter in the future. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line isn't true; we're pretty locked to the Palantir formatter for all Hiero projects. |
||
| // spotless:off | ||
|
|
||
| /** | ||
| * Configuration for the Backfill module. | ||
| * | ||
|
|
@@ -39,4 +46,13 @@ public record BackfillConfiguration( | |
| @Loggable @ConfigProperty(defaultValue = "1000") @Min(500) int perBlockProcessingTimeout, | ||
| @Loggable @ConfigProperty(defaultValue = "60000") @Min(10000) int grpcOverallTimeout, | ||
| @Loggable @ConfigProperty(defaultValue = "false") boolean enableTLS, | ||
| @Loggable @ConfigProperty(defaultValue = "false") boolean greedy) {} | ||
| @Loggable @ConfigProperty(defaultValue = "false") boolean greedy, | ||
| // Queue capacity settings for bounded queues | ||
| @Loggable @ConfigProperty(defaultValue = "20") @Min(1) @Max(1000) int historicalQueueCapacity, | ||
| @Loggable @ConfigProperty(defaultValue = "10") @Min(1) @Max(100) int liveTailQueueCapacity, | ||
| // Health scoring constants | ||
| @Loggable @ConfigProperty(defaultValue = "1000.0") double healthPenaltyPerFailure, | ||
| @Loggable @ConfigProperty(defaultValue = "300000") @Min(30000) long maxBackoffMs) {} | ||
|
|
||
| // restore spotless formatting | ||
| // spotless:on | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.