You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Akira AJISAKA (JIRA)" <ji...@apache.org> on 2016/03/28 11:54:25 UTC

[jira] [Created] (HDFS-10219) Change the default value for dfs.namenode.replication.pending.timeout-sec from -1 to 300

Akira AJISAKA created HDFS-10219:
------------------------------------

             Summary: 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
            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)