Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-4592

Default values for access time precision are out of sync between hdfs-default.xml and the code

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0.4-alpha
    • 2.1.0-beta
    • namenode
    • None
    • Reviewed

    Description

      In hdfs-default.xml we have:

      <property>
        <name>dfs.namenode.accesstime.precision</name>
        <value>3600000</value>
        <description>The access time for HDFS file is precise upto this value.
                     The default value is 1 hour. Setting a value of 0 disables
                     access times for HDFS.
        </description>
      </property>
      

      But in FSNamesystem we have:

      this.accessTimePrecision = conf.getLong(DFS_NAMENODE_ACCESSTIME_PRECISION_KEY, 0);
      

      We properly define DFS_NAMENODE_ACCESSTIME_PRECISION_DEFAULT in DFSConfigKeys.java, but it's not actually referenced anywhere in the code.

      Attachments

        1. HDFS-4592.patch
          2 kB
          Aaron Myers

        Activity

          People

            atm Aaron Myers
            atm Aaron Myers
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: