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

[#886] fix(mr): MR Client may lost data or throw exception when rss.storage.type without MEMORY. #887

Merged
merged 2 commits into from
May 19, 2023

Conversation

zhengchenyu
Copy link
Collaborator

@zhengchenyu zhengchenyu commented May 16, 2023

What changes were proposed in this pull request?

Make sure finishShuffle after send all shuffle data.

Why are the changes needed?

If type without MEMORY, some data will never flush.

How was this patch tested?

I test in two mode:

  • Tez local debug mode
  • MR on yarn mode

Add new UT

@jerqi jerqi changed the title [#886] MR Client may lost data or throw exception when rss.storage.ty… [#886] MR Client may lost data or throw exception when rss.storage.type without MEMORY. May 16, 2023
@jerqi
Copy link
Contributor

jerqi commented May 16, 2023

You can use mockClient to test this issue like SortWriteBufferManagerTest#testWriteException.

@jerqi jerqi changed the title [#886] MR Client may lost data or throw exception when rss.storage.type without MEMORY. [#886] fix(mr): MR Client may lost data or throw exception when rss.storage.type without MEMORY. May 16, 2023
@codecov-commenter
Copy link

codecov-commenter commented May 16, 2023

Codecov Report

Merging #887 (98c4434) into master (9fbfe42) will increase coverage by 0.86%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master     #887      +/-   ##
============================================
+ Coverage     56.20%   57.06%   +0.86%     
- Complexity     2150     2197      +47     
============================================
  Files           327      313      -14     
  Lines         15905    14084    -1821     
  Branches       1247     1306      +59     
============================================
- Hits           8939     8037     -902     
+ Misses         6466     5606     -860     
+ Partials        500      441      -59     
Impacted Files Coverage Δ
...g/apache/hadoop/mapred/SortWriteBufferManager.java 89.30% <100.00%> (+9.62%) ⬆️

... and 43 files with indirect coverage changes

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

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, thanks @zhengchenyu , wait for CI. Merged to master and branch-0.7.

@jerqi jerqi merged commit 9c62784 into apache:master May 19, 2023
25 checks passed
jerqi pushed a commit that referenced this pull request May 19, 2023
…torage.type without MEMORY. (#887)

### What changes were proposed in this pull request?

Make sure finishShuffle after send all shuffle data.

### Why are the changes needed?

If type without MEMORY, some data will never flush.

### How was this patch tested?

I test in two mode:
* Tez local debug mode
* MR on yarn mode

Add new UT

Co-authored-by: zhengchenyu001 <zhengchenyu001@ke.com>
jerqi added a commit that referenced this pull request May 19, 2023
…en rss.storage.type without MEMORY. (#887)"

This reverts commit 4423b43.
@jerqi
Copy link
Contributor

jerqi commented May 19, 2023

Branch 0.7 has conflicts when I cherry-pick this pr. Considering this fix is used for storage without MEMORY. These storage types isn't recommended for production environment. This pr won't be merged to branch 0.7.

@zhengchenyu zhengchenyu deleted the ISSUES-886 branch May 30, 2023 01:42
xianjingfeng pushed a commit to xianjingfeng/incubator-uniffle that referenced this pull request Jun 20, 2023
…ion when rss.storage.type without MEMORY. (apache#887)"

This reverts commit 4423b43.
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] MR Client may lost data or throw exception when rss.storage.type without MEMORY.
3 participants