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: [email protected]
For additional commands, e-mail: [email protected]