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

Namenode should close editlog and unlock storage when removing failed storage dir

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.2.1
    • 1.2.1
    • namenode
    • None

    Description

      When one of dfs.name.dir failed, namenode didn't close editlog and unlock the storage:
      java 24764 hadoop 78uW REG 252,32 0 393219 /volume1/nn/dfs/in_use.lock (deleted)
      java 24764 hadoop 107u REG 252,32 1155072 393229 /volume1/nn/dfs/current/edits.new (deleted)
      java 24764 hadoop 119u REG 252,32 0 393238 /volume1/nn/dfs/current/fstime.tmp
      java 24764 hadoop 140u REG 252,32 1761805 393239 /volume1/nn/dfs/current/edits

      If this dir is limit of space, then restore this storage may fail.

      Attachments

        1. HDFS-5247-branch-1.2.patch
          2 kB
          yunjiong zhao

        Activity

          People

            zhaoyunjiong yunjiong zhao
            zhaoyunjiong yunjiong zhao
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: