Skip to content

Conversation

xin-hedera
Copy link
Contributor

@xin-hedera xin-hedera commented Jan 27, 2025

Description:

This PR adds block stream poller

  • Add BlockStreamPoller
  • Disable RecordFileDownloader bean if block stream poller is enabled
  • Update configuration.md
  • Update StreamFileProvider to support downloading block stream files without listing
  • Update MetricsExecutionInterceptor to support block stream file path
  • Refactor stream file provider tests

Related issue(s):

Fixes #9895

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@xin-hedera xin-hedera added this to the 0.123.0 milestone Jan 27, 2025
@xin-hedera xin-hedera self-assigned this Jan 27, 2025
@xin-hedera xin-hedera added enhancement Type: New feature downloader Area: S3 downloader labels Jan 27, 2025
Copy link

codecov bot commented Jan 27, 2025

Codecov Report

Attention: Patch coverage is 96.73913% with 3 lines in your changes missing coverage. Please review.

Project coverage is 92.21%. Comparing base (883b425) to head (b85807a).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
...rter/downloader/provider/S3StreamFileProvider.java 89.47% 1 Missing and 1 partial ⚠️
...va/com/hedera/mirror/common/domain/StreamFile.java 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main   #10250      +/-   ##
============================================
+ Coverage     92.18%   92.21%   +0.03%     
- Complexity     8005     8024      +19     
============================================
  Files           980      982       +2     
  Lines         33444    33502      +58     
  Branches       4218     4225       +7     
============================================
+ Hits          30830    30894      +64     
+ Misses         1612     1608       -4     
+ Partials       1002     1000       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@xin-hedera xin-hedera marked this pull request as ready for review January 28, 2025 16:30
@xin-hedera xin-hedera requested a review from a team as a code owner January 28, 2025 16:30
Signed-off-by: Xin Li <[email protected]>
Signed-off-by: Xin Li <[email protected]>
Signed-off-by: Xin Li <[email protected]>
edwin-greene
edwin-greene previously approved these changes Jan 30, 2025
Copy link
Contributor

@edwin-greene edwin-greene left a comment

Choose a reason for hiding this comment

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

Looks good to me

jnels124
jnels124 previously approved these changes Jan 30, 2025
Copy link
Contributor

@jnels124 jnels124 left a comment

Choose a reason for hiding this comment

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

LGTM

@xin-hedera xin-hedera dismissed stale reviews from jnels124 and edwin-greene via ea59d61 February 3, 2025 05:46
@steven-sheehy steven-sheehy modified the milestones: 0.123.0, 0.124.0 Feb 4, 2025
Copy link

sonarqubecloud bot commented Feb 6, 2025

Copy link
Contributor

@steven-sheehy steven-sheehy left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jnels124 jnels124 left a comment

Choose a reason for hiding this comment

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

LGTM

@xin-hedera xin-hedera merged commit d58b526 into main Feb 6, 2025
36 checks passed
@xin-hedera xin-hedera deleted the 9895-hip-1056-poller branch February 6, 2025 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
downloader Area: S3 downloader enhancement Type: New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

HIP-1056 Poll for block files
4 participants