[MINOR][CORE]spark.diskStore.subDirectories <= 0 should throw Exception#24024
[MINOR][CORE]spark.diskStore.subDirectories <= 0 should throw Exception#24024lcqzte10192193 wants to merge 1 commit intoapache:masterfrom
Conversation
There was a problem hiding this comment.
Maybe it is good to keep things consistent with other parts of the code? I see a lot of examples such as:
.checkValue(v => v > 0, "The value should be a positive integer.")
There was a problem hiding this comment.
Agree with above, seems the message is a bit repeated with the description in the doc.
There was a problem hiding this comment.
thanks,I change this error message
There was a problem hiding this comment.
@lcqzte10192193 The PR title should also be fixed, How about "Ensure the value of spark.diskStore.subDirectories to be a positive number?" or something else. And you should also put the jira number in the PR title.
There was a problem hiding this comment.
I'd put the key string in the error message, and just say "must be positive".
The title needs to be fixed here; it's the wrong way around. Add [MINOR] to the front. @lcqzte10192193
There was a problem hiding this comment.
thanks,I fixed it
3f1ad19 to
0330338
Compare
0330338 to
2ab405a
Compare
|
Test build #4611 has finished for PR 24024 at commit
|
|
Test build #4614 has started for PR 24024 at commit |
|
Test build #4615 has started for PR 24024 at commit |
|
Test build #4618 has finished for PR 24024 at commit
|
|
Test build #4622 has started for PR 24024 at commit |
|
Test build #4624 has started for PR 24024 at commit |
|
Test build #4627 has started for PR 24024 at commit |
|
Test build #4632 has finished for PR 24024 at commit
|
|
Merged to master |
What changes were proposed in this pull request?
this pr add check this spark.diskStore.subDirectories > 0.This value need to be checked before it can be used.
How was this patch tested?
N/A
Please review http://spark.apache.org/contributing.html before opening a pull request.