-
Notifications
You must be signed in to change notification settings - Fork 134
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-285][Improvement] Only use HDFS and LOCALFILE storageType in the test #360
Conversation
We should also check client's storageType incubator-uniffle/client-spark/spark2/src/main/java/org/apache/spark/shuffle/RssShuffleManager.java Line 249 in 57a834b
incubator-uniffle/client-spark/spark3/src/main/java/org/apache/spark/shuffle/RssShuffleManager.java Line 305 in 57a834b
incubator-uniffle/client-mr/src/main/java/org/apache/hadoop/mapreduce/v2/app/RssMRAppMaster.java Line 163 in 57a834b
|
cc07b01
to
b78db09
Compare
@jerqi Hi, would you mind to take another look? |
fa2d452
to
005245d
Compare
@jerqi Thanks for the heads up, I think I've finished fixing the current known bugs. |
You need to resolve the conflicts with master. you can use the command
solve the conflicts and then
|
Codecov Report
@@ Coverage Diff @@
## master #360 +/- ##
============================================
- Coverage 58.59% 57.86% -0.73%
+ Complexity 1588 1371 -217
============================================
Files 193 171 -22
Lines 10888 9067 -1821
Branches 954 797 -157
============================================
- Hits 6380 5247 -1133
+ Misses 4132 3486 -646
+ Partials 376 334 -42 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@@ -283,7 +283,7 @@ public <K, V, C> ShuffleHandle registerShuffle(int shuffleId, int numMaps, Shuff | |||
|
|||
private void startHeartbeat() { | |||
shuffleWriteClient.registerApplicationInfo(appId, heartbeatTimeout, user); | |||
if (!sparkConf.getBoolean(RssSparkConfig.RSS_TEST_FLAG.key(), false) && !heartbeatStarted) { | |||
if (!sparkConf.getBoolean(RssSparkConfig.RSS_TEST_MODE.key(), false) && !heartbeatStarted) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto.
@@ -188,7 +188,7 @@ public RssShuffleManager(SparkConf sparkConf, boolean isDriver) { | |||
// External shuffle service is not supported when using remote shuffle service | |||
sparkConf.set("spark.shuffle.service.enabled", "false"); | |||
LOG.info("Disable external shuffle service in RssShuffleManager."); | |||
if (!sparkConf.getBoolean(RssSparkConfig.RSS_TEST_FLAG.key(), false)) { | |||
if (!sparkConf.getBoolean(RssSparkConfig.RSS_TEST_MODE.key(), false)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We shouldn't modify this place. It will cause that our spark2 integration tests fail.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change here is to unify the test flags and use rss.test.mode.enable to confirm if it is a test mode. Using multiple parameters to mark a test mode tends to create redundancy and confusion in the parameters, UT fails I can fix it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's a little difficult to unify them. Because RSS_TEST_FLAG is used for ShuffleFlushManagerTest, RSS_TEST_MODE is used for integration tests and uts.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They have different effect though they have similar names. For integraion tests, we need to set RSS_TEST_FLAG false
value and set RSS_TEST_MODE true
value.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what you mean, give me some time to restore the original design.
2b347f8
to
f868b54
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @tiantingting5435 a lot. It's great work!
What changes were proposed in this pull request?
We add some config options:
rss.test.mode.enable, for rss server;
mapreduce.rss.test.mode.enable, for mr client;
spark.rss.test.mode.enable, for spark client.
When we use HDFS or LOCALFILE storageType in the client or shuffle server, we should throw an exception if run with test mode.
Why are the changes needed?
HDFS and LOCALFILE storageType have poor performance, but they are useful for tests. We don't recommend to use them.
Does this PR introduce any user-facing change?
NO
How was this patch tested?
Test locally