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] refactor: use general method to check the remote storage existence #980

Merged
merged 3 commits into from
Jul 18, 2023

Conversation

zuston
Copy link
Member

@zuston zuston commented Jun 28, 2023

What changes were proposed in this pull request?

In #259 , we introduce some general method to check the storage types. So
this patch is to refactor the remaining part of this.

Why are the changes needed?

Refactor to optimize the remote storage checking.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

  1. Existing UTs

@zuston zuston requested a review from kaijchen June 28, 2023 03:27
@codecov-commenter
Copy link

codecov-commenter commented Jun 28, 2023

Codecov Report

Merging #980 (f91dca8) into master (bb61efb) will increase coverage by 3.57%.
The diff coverage is 0.00%.

@@             Coverage Diff              @@
##             master     #980      +/-   ##
============================================
+ Coverage     53.12%   56.69%   +3.57%     
+ Complexity     2480     2201     -279     
============================================
  Files           375      321      -54     
  Lines         20347    14150    -6197     
  Branches       1725     1296     -429     
============================================
- Hits          10810     8023    -2787     
+ Misses         8866     5691    -3175     
+ Partials        671      436     -235     
Impacted Files Coverage Δ
...va/org/apache/uniffle/client/util/ClientUtils.java 61.36% <0.00%> (+5.11%) ⬆️
...a/org/apache/uniffle/storage/util/StorageType.java 93.75% <0.00%> (-6.25%) ⬇️

... and 54 files with indirect coverage changes

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

kaijchen
kaijchen previously approved these changes Jun 28, 2023
Copy link
Contributor

@kaijchen kaijchen left a comment

Choose a reason for hiding this comment

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

LGTM

@jerqi jerqi changed the title refactor: use general method to check the remote storage existence [MINOR] refactor: use general method to check the remote storage existence Jun 29, 2023
@advancedxy
Copy link
Contributor

lgtm, but looks like the test for tez is failed?

@zuston
Copy link
Member Author

zuston commented Jun 29, 2023

Could you help check the Tez unit test failure? @lifeSo I think this is not related with this PR.

@jerqi
Copy link
Contributor

jerqi commented Jul 6, 2023

@lifeSo Could you take a look at the failure test? If it is a flaky test, you can create an issue to track it and try to solve it.

@jerqi
Copy link
Contributor

jerqi commented Jul 14, 2023

@lifeSo Could you take a look at the failure test? If it is a flaky test, you can create an issue to track it and try to solve it.

It seems a flaky test. Let crease an flaky test issue for @lifeSo . Let merge this pr first. Thanks all.

@@ -62,7 +62,7 @@ public static RemoteStorageInfo fetchRemoteStorage(
String storageType,
ShuffleWriteClient shuffleWriteClient) {
RemoteStorageInfo remoteStorage = defaultRemoteStorage;
if (requireRemoteStorage(storageType)) {
if (StorageType.withRemoteStorage(StorageType.valueOf(storageType))) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Check storageType != null here?
The test fails because storageType is null.

jerqi pushed a commit that referenced this pull request Jul 17, 2023
…rTest (#1015)

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

Add storage type configs in TezRemoteShuffleManagerTest

### Why are the changes needed?

StorageType defaults to null, which blocks #980.

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Tested with #980.
@jerqi
Copy link
Contributor

jerqi commented Jul 18, 2023

@zhengchenyu @lifeSo @bin41215 Could you help take a look at the failure case?

@kaijchen
Copy link
Contributor

Could you help take a look at the failure case?

Seems the failed test is caused by storageType == null.

Copy link
Contributor

@kaijchen kaijchen left a comment

Choose a reason for hiding this comment

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

LGTM

@kaijchen kaijchen merged commit e5e1b30 into apache:master Jul 18, 2023
30 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.

5 participants