You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Chao Sun (JIRA)" <ji...@apache.org> on 2019/03/07 21:21:00 UTC

[jira] [Created] (HDFS-14346) EditLogTailer loses precision for sub-second edit log tailing and rolling interval

Chao Sun created HDFS-14346:
-------------------------------

             Summary: EditLogTailer loses precision for sub-second edit log tailing and rolling interval
                 Key: HDFS-14346
                 URL: https://issues.apache.org/jira/browse/HDFS-14346
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: namenode
            Reporter: Chao Sun
            Assignee: Chao Sun


{{EditLogTailer}} currently uses the following:
{code}
    logRollPeriodMs = conf.getTimeDuration(
        DFSConfigKeys.DFS_HA_LOGROLL_PERIOD_KEY,
        DFSConfigKeys.DFS_HA_LOGROLL_PERIOD_DEFAULT, TimeUnit.SECONDS) * 1000;

    sleepTimeMs = conf.getTimeDuration(
        DFSConfigKeys.DFS_HA_TAILEDITS_PERIOD_KEY,
        DFSConfigKeys.DFS_HA_TAILEDITS_PERIOD_DEFAULT, TimeUnit.SECONDS) * 1000;
{code}
to determine the edit log roll and tail frequency. However, if user specify sub-second frequency, such as {{100ms}}, it will lose precision and become 0s. This is not ideal for some scenarios such as standby reads (HDFS-12943).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org