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] Fix inconsistency log level among delegation token providers #23418

Conversation

HeartSaVioR
Copy link
Contributor

What changes were proposed in this pull request?

There's some inconsistency for log level while logging error messages in
delegation token providers. (DEBUG, INFO, WARNING)

Given that failing to obtain token would often crash the query, I guess
it would be nice to set higher log level for error log messages.

How was this patch tested?

The patch just changed the log level.

There's some inconsistency for log level while logging error messages in
delegation token providers. (DEBUG, INFO, WARNING)

Given that failing to obtain token would often crash the query, I guess
it would be nice to set higher log level for error log messages.
@SparkQA
Copy link

SparkQA commented Dec 31, 2018

Test build #100580 has finished for PR 23418 at commit 0fc5b71.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

nextRenewalDate
nextRenewalDate
} catch {
case NonFatal(e) =>
Copy link
Member

Choose a reason for hiding this comment

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

This seems to change behavior - is it pretty clearly OK, or is it necessary?

Copy link
Contributor Author

@HeartSaVioR HeartSaVioR Dec 31, 2018

Choose a reason for hiding this comment

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

This is another one of inconsistency between HDFS delegation token provider and others. While others log the error message and swallow the exception, this doesn't swallow the exception.

Personally I prefer not to swallow the error, but majority are swallowing so I just changed this. Please let me know if we think it would be better to re-raise the exception.

If we are unclear about this, I'm OK to make changes to only log level.

@HyukjinKwon
Copy link
Member

Merged to master.

@asfgit asfgit closed this in 9937361 Jan 1, 2019
@HeartSaVioR
Copy link
Contributor Author

Thanks @srowen and @HyukjinKwon for reviewing and merging!

@HeartSaVioR HeartSaVioR deleted the FIX-inconsistency-log-level-between-delegation-token-providers branch January 3, 2019 04:43
jackylee-ch pushed a commit to jackylee-ch/spark that referenced this pull request Feb 18, 2019
## What changes were proposed in this pull request?

There's some inconsistency for log level while logging error messages in
delegation token providers. (DEBUG, INFO, WARNING)

Given that failing to obtain token would often crash the query, I guess
it would be nice to set higher log level for error log messages.

## How was this patch tested?

The patch just changed the log level.

Closes apache#23418 from HeartSaVioR/FIX-inconsistency-log-level-between-delegation-token-providers.

Authored-by: Jungtaek Lim (HeartSaVioR) <kabhwan@gmail.com>
Signed-off-by: Hyukjin Kwon <gurwls223@apache.org>
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.

4 participants