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

ASF GitHub Bot commented on HDFS-17195:
---------------------------------------

github-actions[bot] closed pull request #6089: HDFS-17195. NullPointerException 
thrown in DataXceiver when `dfs.encrypt.data.overwrite.downstream.derived.qop` 
is true
URL: https://github.com/apache/hadoop/pull/6089




> NullPointerException thrown in DataXceiver when 
> `dfs.encrypt.data.overwrite.downstream.derived.qop` is true
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-17195
>                 URL: https://issues.apache.org/jira/browse/HDFS-17195
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 3.3.6
>            Reporter: ConfX
>            Priority: Major
>              Labels: pull-request-available
>
> When `dfs.encrypt.data.overwrite.downstream.derived.qop` is true, 
> `org.apache.hadoop.hdfs.server.datanode.DataXceiver#writeBlock` crashes with 
> NullPointerException. This is because when the configuration is true, the 
> block key is being obtained from a `datanode.blockPoolTokenSecretManager` 
> that could still be null.
> To reproduce:
> 1. set `dfs.encrypt.data.overwrite.downstream.derived.qop` to true
> 2. run 
> `org.apache.hadoop.hdfs.server.datanode.TestDataXceiverBackwardsCompat#testBackwardsCompat`
> We created a PR that provides a fix by making sure the 
> blockPoolTokenSecretManager is not null while 
> `dfs.encrypt.data.overwrite.downstream.derived.qop` is true.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to