-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
HDDS-1430. NPE if secure ozone if KMS uri is not defined. Contributed by Ajay Kumar. #752
Conversation
} catch (IOException ioe) { | ||
LOG.error("Error retrieving KeyProvider.", ioe); | ||
return null; | ||
} | ||
if (keyProvider instanceof DelegationTokenIssuer) { |
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.
Why don't we just check keyProvider!=null on Line 69 before check if keyProvider instanceof? This way, we don't need other changes.
Note getKeyProvider() will be eventually fixed when OM returns its KMS uri to the client as part of it service discovery.
💔 -1 overall
This message was automatically generated. |
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/OzoneKMSUtil.java
Show resolved
Hide resolved
+1 |
ClientHelper changed the log-print, which the integration test relies on. Author: [email protected] <[email protected]> Reviewers: Jagadish<[email protected]> Closes apache#752 from rmatharu/integ-test-fix
No description provided.