You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "ConfX (Jira)" <ji...@apache.org> on 2023/09/16 15:24:00 UTC

[jira] [Created] (HDFS-17195) NullPointerException thrown in DataXceiver when `dfs.encrypt.data.overwrite.downstream.derived.qop` is true

ConfX created HDFS-17195:
----------------------------

             Summary: 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


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: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org