[ 
https://issues.apache.org/jira/browse/HADOOP-15336?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16419283#comment-16419283
 ] 

Rushabh S Shah commented on HADOOP-15336:
-----------------------------------------

bq. In any case, I think this is worth committing.
Agree.

bq. Actually I would switch the null check by hasKeyProviderUri().
I don't think {{FSserverDefaults}} has {{hasKeyProviderUri}} method.
bq. Note that the reverse convert does actually check fs.hasKeyProviderUri().
Reverse is an object FSserverDefaultsProto, thats why it has 
{{hasKeyProviderUri}} method.
We can add {{hasKeyProviderUri}} method in {{FSserverDefaults}} and do null 
check in that method.

> NPE for FsServerDefaults.getKeyProviderUri() for clientProtocol communication 
> between 2.7 and 3.2
> -------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-15336
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15336
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 3.1.0, 3.2.0
>            Reporter: Sherwood Zheng
>            Assignee: Sherwood Zheng
>            Priority: Major
>              Labels: backward-incompatible, common
>         Attachments: HADOOP-15336.000.patch, HADOOP-15336.001.patch
>
>
> KeyProviderUri is not available in 2.7 so when 2.7 clients contact with 3.2 
> services, it cannot find the key provider URI and triggers a 
> NullPointerException.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to