-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-38242][CORE] Sort the SparkSubmit debug output #35556
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
Conversation
srowen
left a comment
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.
Seems reasonable to me. I always fear it breaks somebody relying on the output, but I can't see a reasonable use case for that
|
Can one of the admins verify this patch? |
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.
Ah wait a sec, we can't sort these. Order of args matters; you might have --flag value. You can see the issue in your example, where the arg order doesn't reflect what was passed and loses this information
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.
Yeah .. I wouldn't sort 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.
Good catch! Reverted 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.
Likewise classpath order matters, so not sure we should do this.
Spark configs ... yeah order should not matter, so that should be sorted.
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.
Reverted it!
Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
|
Hm, I think the test failures may be legitimate here. They are tests related to conf. Can you check the failed tests and see if they need an adjustment after the output order changes? |
|
@HyukjinKwon do you know why it seems like the main tests weren't run here? does he need to enable tests in his branch? |
|
Ah, after enabling, he needs to push an empty commit or rebase to trigger properly. ... I think probably this is a bug we need to fix |
|
I pushed (and removed back) some arbitrary changes to trigger the CI |
|
Thank you, @HyukjinKwon ! I used close/reopen PR to re-trigger the checks but this needs https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request and this event is not enabled at
The change is to add these two lines - https://github.com/apache/avro/blob/f10fa6b9e30e38ec5cde6e00288f0b31b24bf1de/.github/workflows/test-lang-c.yml#L21-L22 |
|
Merged to master |
|
Thank you, @srowen and @HyukjinKwon ! |
What changes were proposed in this pull request?
Sort the debug info printed by SparkSubmit when
-verboseis enabled.Why are the changes needed?
This way it is easier to find settings/properties and their values.
Does this PR introduce any user-facing change?
Yes. The log output changes - some data is sorted.
How was this patch tested?
Old unit tests still pass & manually check the sorted output.