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

[MINOR] feat(server): Introduce LocalFileBlackHoleWriter for test flush ceiling performance #2321

Merged
merged 3 commits into from
Jan 7, 2025

Conversation

maobaolong
Copy link
Member

What changes were proposed in this pull request?

Introduce a new implementation of FileWriter, named LocalFileBlackHoleWriter.

Why are the changes needed?

Drop all the data, specify LocalFileBlackHoleWriter for test the ceiling performance of flush event.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Tested on our pressure cluster.

Copy link

github-actions bot commented Jan 5, 2025

Test Results

 2 966 files  ±0   2 966 suites  ±0   6h 28m 30s ⏱️ - 6m 52s
 1 100 tests ±0   1 098 ✅ +1   2 💤 ±0  0 ❌ ±0 
13 774 runs  ±0  13 744 ✅ +1  30 💤 ±0  0 ❌ ±0 

Results for commit 3f37afa. ± Comparison against base commit 995de6d.

♻️ This comment has been updated with latest results.

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 9 lines in your changes missing coverage. Please review.

Project coverage is 51.59%. Comparing base (580b4f2) to head (96ee3d7).
Report is 6 commits behind head on master.

Files with missing lines Patch % Lines
...storage/handler/impl/LocalFileBlackHoleWriter.java 0.00% 9 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2321      +/-   ##
============================================
+ Coverage     51.19%   51.59%   +0.39%     
- Complexity     2936     2973      +37     
============================================
  Files           486      475      -11     
  Lines         24720    22692    -2028     
  Branches       2041     2090      +49     
============================================
- Hits          12656    11708     -948     
+ Misses        11274    10239    -1035     
+ Partials        790      745      -45     

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

import org.apache.uniffle.storage.common.FileBasedShuffleSegment;

/** A shuffle writer that write data into black hole. */
public class LocalFileBlackHoleWriter implements FileWriter {
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe this class should be in the test package.

Copy link
Member Author

Choose a reason for hiding this comment

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

We could not specify it for performance test purpose if we put it into the test package.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK. I got it.

Copy link
Contributor

Choose a reason for hiding this comment

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

You would better add more comments to explain how to use this class.

Copy link
Member Author

Choose a reason for hiding this comment

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

OK

@maobaolong
Copy link
Member Author

@jerqi Add more comments. PTAL.

@maobaolong maobaolong requested a review from jerqi January 6, 2025 10:34
@maobaolong maobaolong closed this Jan 6, 2025
@maobaolong maobaolong reopened this Jan 6, 2025
Copy link
Contributor

@jerqi jerqi left a comment

Choose a reason for hiding this comment

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

LGTM.

@maobaolong maobaolong merged commit 284d139 into apache:master Jan 7, 2025
84 of 85 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants