[ https://issues.apache.org/jira/browse/HDFS-10219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lin Yiqun reassigned HDFS-10219: -------------------------------- Assignee: Lin Yiqun > Change the default value for dfs.namenode.replication.pending.timeout-sec > from -1 to 300 > ---------------------------------------------------------------------------------------- > > Key: HDFS-10219 > URL: https://issues.apache.org/jira/browse/HDFS-10219 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: Akira AJISAKA > Assignee: Lin Yiqun > Priority: Minor > > The default value for "dfs.namenode.replication.pending.timeout-sec" > ({{DFS_NAMENODE_REPLICATION_PENDING_TIMEOUT_SEC_DEFAULT}}) is -1, but the > timeout is 5 minutes by default. > {code:title=BlockManager.java} > pendingReplications = new PendingReplicationBlocks(conf.getInt( > DFSConfigKeys.DFS_NAMENODE_REPLICATION_PENDING_TIMEOUT_SEC_KEY, > DFSConfigKeys.DFS_NAMENODE_REPLICATION_PENDING_TIMEOUT_SEC_DEFAULT) * > 1000L); > {code} > {code:title=PendingReplicationBlocks.java} > private long timeout = 5 * 60 * 1000; > private final static long DEFAULT_RECHECK_INTERVAL = 5 * 60 * 1000; > PendingReplicationBlocks(long timeoutPeriod) { > if ( timeoutPeriod > 0 ) { > this.timeout = timeoutPeriod; > } > pendingReplications = new HashMap<>(); > timedOutItems = new ArrayList<>(); > } > {code} > I'm thinking we can change > {{DFS_NAMENODE_REPLICATION_PENDING_TIMEOUT_SEC_DEFAULT}} from -1 to 300 for > improving readability. -- This message was sent by Atlassian JIRA (v6.3.4#6332)