LoggingResearch created HDFS-17616:
--------------------------------------
Summary: Logging Enhancement for Datanode Replacement Policy
Configuration in ReplaceDatanodeOnFailure
Key: HDFS-17616
URL: https://issues.apache.org/jira/browse/HDFS-17616
Project: Hadoop HDFS
Issue Type: Improvement
Components: hdfs
Affects Versions: 3.3.6
Environment: Version: {{`3.3.6`}}
Location:
{{{}`hadoop/hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/datatransfer/ReplaceDatanodeOnFailure.java`{}}},
in {{`getPolicy`}} method, lines 157-159, 161-169,1770-172.
Reporter: LoggingResearch
Attachments: TestReplaceDatanodeOnFailure.java,
original-vs-log-enhanced.md
This case focuses on improving the logging within the {{getPolicy}} method in
{{ReplaceDatanodeOnFailure.java}} to provide more informative messages about
the configuration of the Datanode replacement policy. The original code does
not provide adequate logging, making it difficult to determine why a specific
policy is applied or why an error occurs due to an invalid configuration.
*Expected Behavior:*
The system should log the selected Datanode replacement policy based on the
configuration settings or provide clear error messages when an invalid
configuration is encountered.
*How-to-Fix:*
Enhance the {{getPolicy}} method to include logging statements that inform
users about the chosen policy and provide guidance when an invalid
configuration is detected.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]