jiang he created HDFS-17944:
-------------------------------
Summary: Negative dfs.client.read.shortcircuit.streams.cache.size
reports internal maxTotalSize error
Key: HDFS-17944
URL: https://issues.apache.org/jira/browse/HDFS-17944
Project: Hadoop HDFS
Issue Type: Bug
Components: hdfs-client
Affects Versions: 3.4.3
Reporter: jiang he
When dfs.client.read.shortcircuit.streams.cache.size is set to a negative
value, HDFS client reports an internal variable name instead of the user-facing
configuration key.
Reproduction:
Use the following HDFS client-related configuration:
<property>
<name>dfs.client.read.shortcircuit</name>
<value>true</value>
</property>
<property>
<name>dfs.client.read.shortcircuit.streams.cache.size</name>
<value>-1</value>
</property>
<property>
<name>dfs.domain.socket.path</name>
<value></value>
</property>
Run a simple HDFS client operation.
Actual result:
The client fails with:
java.lang.IllegalArgumentException: maxTotalSize must be greater than zero.
Expected result:
The exception should mention the actual configuration key, for example:
dfs.client.read.shortcircuit.streams.cache.size must be greater than zero.
Reproduced locally:
- Negative value dfs.client.read.shortcircuit.streams.cache.size=-1 failed.
- Normal value dfs.client.read.shortcircuit.streams.cache.size=256 passed.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]