-
Notifications
You must be signed in to change notification settings - Fork 28.4k
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
[SPARK-22990][Core] Fix method isFairScheduler in JobsTab and StagesTab #20186
Conversation
good catch! LGTM |
fb87aa6
to
10b5518
Compare
Test build #85801 has finished for PR 20186 at commit
|
Test build #85800 has finished for PR 20186 at commit
|
retest this please |
Test build #85804 has finished for PR 20186 at commit
|
Is it easy to add a unit test in |
I think it's fine. We usually don't test if a config can be correctly set as it's so trivial... |
thanks, merging to master/2.3! |
## What changes were proposed in this pull request? In current implementation, the function `isFairScheduler` is always false, since it is comparing String with `SchedulingMode` Author: Wang Gengliang <[email protected]> Closes #20186 from gengliangwang/isFairScheduler. (cherry picked from commit 849043c) Signed-off-by: Wenchen Fan <[email protected]>
I just did a quick test with code changes, it works. Attach the screenshot in PR description. |
The point is to test that the code using that config works as expected, not that it can be set. And as this PR proves, code can be wrong even in "trivial" cases. |
What changes were proposed in this pull request?
In current implementation, the function
isFairScheduler
is always false, since it is comparing String withSchedulingMode
It works with this patch: