Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-3326

Append enabled log message uses the wrong variable

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.0-alpha
    • Component/s: namenode
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      "dfs.support.append" is set to true
      started NN in non-HA mode

      At the NN side log the append enable is set to false.

      This is because in code append enabled is set to HA enabled value.Since Started NN in non-HA mode the value for append is false
      Code:
      =====

      this.supportAppends = conf.getBoolean(DFS_SUPPORT_APPEND_KEY, DFS_SUPPORT_APPEND_DEFAULT);
            LOG.info("Append Enabled: " + haEnabled);

      NN logs
      ========

      2012-04-25 21:11:09,693 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: HA Enabled: false
      2012-04-25 21:11:09,702 INFO org.apache.hadoop.hdfs.server.namenode.FSNamesystem: Append Enabled: false
      1. hdfs-3326.txt
        1 kB
        Matthew Jacobs

        Activity

        J.Andreina created issue -
        Eli Collins made changes -
        Field Original Value New Value
        Fix Version/s 2.0.0 [ 12320353 ]
        Fix Version/s 3.0.0 [ 12320356 ]
        Labels newbie
        Target Version/s 3.0.0, 2.0.0 [ 12320356, 12320353 ] 2.0.0 [ 12320353 ]
        Priority Major [ 3 ] Trivial [ 5 ]
        Eli Collins made changes -
        Assignee Matthew Jacobs [ mjacobs ]
        Matthew Jacobs made changes -
        Attachment hdfs-3326.txt [ 12524943 ]
        Matthew Jacobs made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Eli Collins made changes -
        Summary Even when dfs.support.append is set to true log message displays that the append is disabled Append enabled log message uses the wrong variable
        Eli Collins made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Target Version/s 2.0.0 [ 12320353 ]
        Fix Version/s 2.0.0 [ 12320353 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            Matthew Jacobs
            Reporter:
            J.Andreina
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development