jiang he created HDFS-17945:
-------------------------------
Summary: Invalid checkpoint directory configuration can cause
NullPointerException during HDFS FileSystem initialization
Key: HDFS-17945
URL: https://issues.apache.org/jira/browse/HDFS-17945
Project: Hadoop HDFS
Issue Type: Bug
Components: hdfs-client, namenode
Affects Versions: 3.4.3
Reporter: jiang he
Several HDFS client integer configuration keys fail with a raw
NumberFormatException when set to an out-of-range negative value.
Reproduced with Hadoop 3.4.3.
Examples:
1. dfs.client.block.write.retries=-4294967296
Observed:
Failed to initialize filesystem hdfs://127.0.0.1:9000:
java.lang.NumberFormatException: For input string: "-4294967296"
2. dfs.client.pipeline.recovery.max-retries=-4294967296
Observed:
Failed to initialize filesystem hdfs://127.0.0.1:9000:
java.lang.NumberFormatException: For input string: "-4294967296"
3. dfs.client.retry.max.attempts=-4294967296
Observed:
Failed to initialize filesystem hdfs://127.0.0.1:9000:
java.lang.NumberFormatException: For input string: "-4294967296"
4. dfs.client.congestion.backoff.mean.time=-4294967296
Observed:
java.lang.NumberFormatException: For input string: "-4294967296"
Expected:
HDFS should report a clear configuration validation error that identifies
the invalid key and explains the valid range, instead of exposing a raw
NumberFormatException.
Control test:
The following normal values pass successfully:
dfs.client.block.write.retries=3
dfs.client.pipeline.recovery.max-retries=5
dfs.client.retry.max.attempts=10
dfs.client.congestion.backoff.mean.time=5000
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]