Uploaded image for project: '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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-alpha
    • 2.0.2-alpha
    • ha, namenode
    • None
    • 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.

      Attachments

        1. HDFS-3275_1.patch
          6 kB
          Uma Maheswara Rao G
        2. HDFS-3275_1.patch
          6 kB
          amith
        3. HDFS-3275_2.patch
          6 kB
          amith
        4. HDFS-3275_2.patch
          6 kB
          amith
        5. HDFS-3275_3.patch
          6 kB
          amith
        6. HDFS-3275.patch
          5 kB
          amith
        7. HDFS-3275-4.patch
          6 kB
          Uma Maheswara Rao G

        Activity

          People

            amithdk amith
            vinithra Vinithra Varadharajan
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: