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

[ISSUE-484] Fix accidentally remove the storage of appId when unregistering partial shuffle in HdfsStorageManager #485

Merged
merged 3 commits into from
Jan 17, 2023

Conversation

zuston
Copy link
Member

@zuston zuston commented Jan 13, 2023

What changes were proposed in this pull request?

When one app's partial shuffles are removed, it will make other shuffle fail of flushing data due to its missing storage referenced from its appId.

Why are the changes needed?

Fix accidentally remove the storage of appId when unregistering partial shuffle in HdfsStorageManager

Does this PR introduce any user-facing change?

NO

How was this patch tested?

  1. UTs

…tering partial shuffle in HdfsStorageManager
@zuston
Copy link
Member Author

zuston commented Jan 13, 2023

PTAL @jerqi . I think this is an important bug fix.

@zuston zuston requested review from duanmeng and jerqi and removed request for duanmeng January 13, 2023 08:32
@codecov-commenter
Copy link

codecov-commenter commented Jan 13, 2023

Codecov Report

Merging #485 (49190d1) into master (63c1d71) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master     #485      +/-   ##
============================================
- Coverage     58.77%   58.76%   -0.02%     
- Complexity     1704     1705       +1     
============================================
  Files           206      206              
  Lines         11468    11470       +2     
  Branches       1024     1023       -1     
============================================
  Hits           6740     6740              
- Misses         4317     4319       +2     
  Partials        411      411              
Impacted Files Coverage Δ
...che/uniffle/server/storage/HdfsStorageManager.java 90.90% <100.00%> (-2.85%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@advancedxy
Copy link
Contributor

Looks like there's some flaky test?

Overall, this LGTM.

@zuston
Copy link
Member Author

zuston commented Jan 16, 2023

Looks like there's some flaky test?

Overall, this LGTM.

This flaky test has been recorded in #483. Let's rerun it.

@zuston
Copy link
Member Author

zuston commented Jan 16, 2023

PTAL @advancedxy CI passed.

Copy link
Contributor

@advancedxy advancedxy left a comment

Choose a reason for hiding this comment

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

overall, LGTM.
If @jerqi has time, you can have another look.

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

@zuston zuston merged commit 849993c into apache:master Jan 17, 2023
@zuston
Copy link
Member Author

zuston commented Jan 17, 2023

Merged. Thanks for your review @jerqi @advancedxy

@zuston zuston deleted the fixShuffle branch January 17, 2023 02:03
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.

[Bug] HdfsStorageManager#appIdToStorages data lost when removing resources for partial shuffleIds
4 participants