[ https://issues.apache.org/jira/browse/HADOOP-12615?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15058966#comment-15058966 ]
Wei-Chiu Chuang commented on HADOOP-12615: ------------------------------------------ Thanks for the details reviews. I am taking this opportunity to learn. (1) It is only used if the current thread's class loader is for some reason set as null. Do you think it's better to throw an exception in this case? (2) Will update it (3) It is a typo. Good catch! (4) Ok. (5) MiniKdc can not import ThreadUtil.java, and it does not seem worth it to update pom.xml for this. > Fix NPE in MiniKMS.start() > -------------------------- > > Key: HADOOP-12615 > URL: https://issues.apache.org/jira/browse/HADOOP-12615 > Project: Hadoop Common > Issue Type: Bug > Components: kms, test > Affects Versions: 3.0.0 > Reporter: Wei-Chiu Chuang > Assignee: Wei-Chiu Chuang > Priority: Minor > Labels: jenkins, supportability, test > Attachments: HADOOP-12615.001.patch, HADOOP-12615.002.patch, > HADOOP-12615.003.patch, HADOOP-12615.004.patch, HADOOP-12615.005.patch > > > Sometimes, KMS resource file can not be loaded. When this happens, an > InputStream variable will be a null pointer which will subsequently throw NPE. > This is a supportability JIRA that makes the error message more explicit, and > explain why NPE is thrown. Ultimately, leads us to understand why the > resource files can not be loaded. -- This message was sent by Atlassian JIRA (v6.3.4#6332)