Skip to content
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

make deep store upload retry async with configurable parallelism #12017

Merged
merged 6 commits into from Dec 4, 2023

Conversation

itschrispeck
Copy link
Contributor

@itschrispeck itschrispeck commented Nov 17, 2023

Relates to: #11874

This PR moves the deep store upload retry to be an asynchronous operation. By default, the thread pool that performs the uploads is created with a single thread.

A new config is introduced to allow for increasing the size of the thread pool used for retrying segment uploads: controller.realtime.segment.deepStoreUploadRetry.parallelism (default is 1).

A new metric is emitted to track the upload retry queue size, which can be used to ensure we can have visibility into scenarios where segment upload retry cannot keep up with new segments that are missing their deepstore copy: LLC_SEGMENTS_DEEP_STORE_UPLOAD_RETRY_QUEUE_SIZE

Tested via cluster deployment, edited ZK to remove segment urls to trigger uploads and verified segments were uploaded.

tags: enhancement

@codecov-commenter
Copy link

codecov-commenter commented Nov 17, 2023

Codecov Report

Attention: 17 lines in your changes are missing coverage. Please review.

Comparison is base (2beb9a4) 61.61% compared to head (da893eb) 61.49%.
Report is 59 commits behind head on master.

Files Patch % Lines
.../core/realtime/PinotLLCRealtimeSegmentManager.java 60.52% 9 Missing and 6 partials ⚠️
...g/apache/pinot/common/metrics/ControllerGauge.java 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master   #12017      +/-   ##
============================================
- Coverage     61.61%   61.49%   -0.13%     
- Complexity      207     1153     +946     
============================================
  Files          2385     2389       +4     
  Lines        129214   129845     +631     
  Branches      20003    20086      +83     
============================================
+ Hits          79613    79845     +232     
- Misses        43801    44175     +374     
- Partials       5800     5825      +25     
Flag Coverage Δ
custom-integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration <0.01% <0.00%> (-0.01%) ⬇️
integration1 <0.01% <0.00%> (-0.01%) ⬇️
integration2 0.00% <0.00%> (ø)
java-11 <0.01% <0.00%> (-61.59%) ⬇️
java-21 61.48% <58.53%> (+0.01%) ⬆️
skip-bytebuffers-false 61.47% <58.53%> (-0.14%) ⬇️
skip-bytebuffers-true 61.46% <58.53%> (+33.88%) ⬆️
temurin 61.49% <58.53%> (-0.13%) ⬇️
unittests 61.48% <58.53%> (-0.12%) ⬇️
unittests1 46.72% <0.00%> (-0.23%) ⬇️
unittests2 27.61% <58.53%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@Jackie-Jiang Jackie-Jiang added enhancement release-notes Referenced by PRs that need attention when compiling the next release notes Configuration Config changes (addition/deletion/change in behavior) documentation labels Nov 18, 2023
@@ -914,9 +915,9 @@ public void testCommitSegmentMetadata() {
/**
* Test cases for fixing LLC segment by uploading to segment store if missing
*/
@Test
@Test(timeOut = 30_000L)
Copy link
Contributor

Choose a reason for hiding this comment

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

Do not use timeout. We usually use TestUtils.waitForCondition()

Copy link
Contributor

@Jackie-Jiang Jackie-Jiang left a comment

Choose a reason for hiding this comment

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

LGTM otherwise

@itschrispeck
Copy link
Contributor Author

@Jackie-Jiang Thanks for the reviews! addressed the remaining comments

@chenboat chenboat merged commit b131f89 into apache:master Dec 4, 2023
19 checks passed
saurabhd336 pushed a commit to saurabhd336/pinot that referenced this pull request Feb 9, 2024
…che#12017)

* make deep store upload retry async with configurable parallelism

* do not queue additional tasks if a task already exists in the queue

* address comments, fix metrics

* missed cherry-pick, use thread safe set

* lint

* address comments
wirybeaver pushed a commit to wirybeaver/pinot that referenced this pull request Apr 5, 2024
…rallelism (apache#12017)

Summary: Cherry-picking https://github.com/apache/pinot/pull/12017/files onto release-1.0.x branch

Reviewers: #ldap_rta-group, peck

Reviewed By: #ldap_rta-group, peck

JIRA Issues: EVA-6295

Differential Revision: https://code.uberinternal.com/D12957267
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Configuration Config changes (addition/deletion/change in behavior) documentation enhancement release-notes Referenced by PRs that need attention when compiling the next release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants