Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-12884

A failed atomic folder rename operation can never recovery for the destination file is deleted in Wasb filesystem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      When using Wsab file system, we found that a failed atomic folder rename operation can never recovery for the destination file deleted in Wasb filesystem.

      ls: Attempting to complete rename of file hbase/azurtst-xiaomi/data/default/YCSBTest/.tabledesc during folder rename redo, and file was not found in source or destination.
      

      The reason is the the file is renamed to the destination file before the crash, and the destination file is deleted by another process after crash. So the recovery is blocked during finishing the rename operation of this file when found the source and destination files all don't exist.

      See: NativeAzureFileSystem.java #finishSingleFileRename

      Another serious problem is that the recovery of atomic rename operation may delete new created file which is same name as the source file, because the file system don't check if there are rename operation need be redo.

      Suggestions are welcomed~

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              liushaohui Shaohui Liu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: