Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-3275

Format command overwrites contents of non-empty shared edits dir if name dirs are empty without any prompting

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.0-alpha
    • Fix Version/s: 2.0.2-alpha
    • Component/s: ha, namenode
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      To reproduce:

      1. Configure a NameNode with namedirs and a shared edits dir, all of which are empty.
      2. Run hdfs namenode -format. Namedirs and shared edits dir gets populated.
      3. Delete the contents of the namedirs. Leave the shared edits dir as is. Check the timestamps of the shared edits dir contents.
      4. Run format again. The namedirs as well as the shared edits dir get formatted. The shared edits dir's contents have been replaced without any prompting.
      1. HDFS-3275-4.patch
        6 kB
        Uma Maheswara Rao G
      2. HDFS-3275_3.patch
        6 kB
        amith
      3. HDFS-3275_2.patch
        6 kB
        amith
      4. HDFS-3275_2.patch
        6 kB
        amith
      5. HDFS-3275_1.patch
        6 kB
        Uma Maheswara Rao G
      6. HDFS-3275_1.patch
        6 kB
        amith
      7. HDFS-3275.patch
        5 kB
        amith

        Activity

        Allen Wittenauer made changes -
        Fix Version/s 2.0.2-alpha [ 12322472 ]
        Fix Version/s 2.0.0-alpha [ 12320353 ]
        Allen Wittenauer made changes -
        Fix Version/s 3.0.0 [ 12320356 ]
        Uma Maheswara Rao G made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Fix Version/s 2.0.0 [ 12320353 ]
        Resolution Fixed [ 1 ]
        Uma Maheswara Rao G made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Hadoop Flags Reviewed [ 10343 ]
        Uma Maheswara Rao G made changes -
        Attachment HDFS-3275-4.patch [ 12524985 ]
        Uma Maheswara Rao G made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        amith made changes -
        Attachment HDFS-3275_3.patch [ 12524019 ]
        amith made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        amith made changes -
        Attachment HDFS-3275_2.patch [ 12524017 ]
        amith made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        amith made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        amith made changes -
        Attachment HDFS-3275_2.patch [ 12524011 ]
        amith made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Uma Maheswara Rao G made changes -
        Attachment HDFS-3275_1.patch [ 12523911 ]
        amith made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Fix Version/s 3.0.0 [ 12320356 ]
        amith made changes -
        Attachment HDFS-3275_1.patch [ 12523822 ]
        amith made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        amith made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Target Version/s 3.0.0 [ 12320356 ]
        amith made changes -
        Attachment HDFS-3275.patch [ 12523215 ]
        amith made changes -
        Status In Progress [ 3 ] Open [ 1 ]
        amith made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        amith made changes -
        Assignee amith [ amithdk ]
        Aaron T. Myers made changes -
        Field Original Value New Value
        Description To reproduce:
        1) Configure a NameNode with namedirs and a shared edits dir, all of which are empty.
        2) Run hdfs namenode -format. Namedirs and shared edits dir gets populated.
        2) Delete the contents of the namedirs. Leave the shared edits dir as is. Check the timestamps of the shared edits dir contents.
        3) Run format again. The namedirs as well as the shared edits dir get formatted. The shared edits dir's contents have been replaced without any prompting.
        To reproduce:
        # Configure a NameNode with namedirs and a shared edits dir, all of which are empty.
        # Run hdfs namenode -format. Namedirs and shared edits dir gets populated.
        # Delete the contents of the namedirs. Leave the shared edits dir as is. Check the timestamps of the shared edits dir contents.
        # Run format again. The namedirs as well as the shared edits dir get formatted. The shared edits dir's contents have been replaced without any prompting.
        Vinithra Varadharajan created issue -

          People

          • Assignee:
            amith
            Reporter:
            Vinithra Varadharajan
          • Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development