Skip to content

[MINOR] test: flaky test ShuffleTaskManagerTest#checkAndClearLeakShuffleDataTest - #1320

Merged
xianjingfeng merged 1 commit into
apache:masterfrom
xianjingfeng:flaky_test1
Nov 17, 2023
Merged

[MINOR] test: flaky test ShuffleTaskManagerTest#checkAndClearLeakShuffleDataTest#1320
xianjingfeng merged 1 commit into
apache:masterfrom
xianjingfeng:flaky_test1

Conversation

@xianjingfeng

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

fix flaky test ShuffleTaskManagerTest#checkAndClearLeakShuffleDataTest.

Why are the changes needed?

ShuffleTaskManagerTest.checkAndClearLeakShuffleDataTest:940 expected:
<false> but was: <true>

The cause of the problem:
Application in shuffleTaskInfos is removed first, and then remove the directory in the local disk.
Refer: org.apache.uniffle.server.ShuffleTaskManager#removeResources

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Repeat it for 100 times in my development enviroment.

@xianjingfeng
xianjingfeng requested a review from roryqi November 17, 2023 07:04
@codecov-commenter

codecov-commenter commented Nov 17, 2023

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (acfec30) 53.39% compared to head (bb2a5da) 54.42%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1320      +/-   ##
============================================
+ Coverage     53.39%   54.42%   +1.02%     
  Complexity     2695     2695              
============================================
  Files           411      391      -20     
  Lines         23640    21280    -2360     
  Branches       2006     2006              
============================================
- Hits          12622    11581    -1041     
+ Misses        10242     8994    -1248     
+ Partials        776      705      -71     

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

@roryqi roryqi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM.thanks @xianjingfeng

@xianjingfeng
xianjingfeng merged commit e1a5499 into apache:master Nov 17, 2023
@xianjingfeng
xianjingfeng deleted the flaky_test1 branch November 17, 2023 09:01
xianjingfeng added a commit that referenced this pull request Nov 20, 2023
…leDataTest (#1320)

### What changes were proposed in this pull request?
fix flaky test ShuffleTaskManagerTest#checkAndClearLeakShuffleDataTest.

### Why are the changes needed?
ShuffleTaskManagerTest.checkAndClearLeakShuffleDataTest:940 expected:
<false> but was: <true>

The cause of the problem:
Application in shuffleTaskInfos is removed first, and then remove the directory in the local disk.
Refer: org.apache.uniffle.server.ShuffleTaskManager#removeResources

### Does this PR introduce any user-facing change?
No.

### How was this patch tested?
Repeat it for 100 times in my development enviroment.

(cherry picked from commit e1a5499)
zuston pushed a commit to zuston/incubator-uniffle that referenced this pull request Jan 18, 2024
…leDataTest (apache#1320)

### What changes were proposed in this pull request?
fix flaky test ShuffleTaskManagerTest#checkAndClearLeakShuffleDataTest.

### Why are the changes needed?
ShuffleTaskManagerTest.checkAndClearLeakShuffleDataTest:940 expected:
<false> but was: <true>

The cause of the problem:
Application in shuffleTaskInfos is removed first, and then remove the directory in the local disk.
Refer: org.apache.uniffle.server.ShuffleTaskManager#removeResources

### Does this PR introduce any user-facing change?
No.

### How was this patch tested?
Repeat it for 100 times in my development enviroment.
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