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

0.20: DNs should interrupt writers at start of recovery

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.20-append
    • 0.20.205.0
    • datanode
    • None
    • Reviewed

    Description

      When block recovery starts (eg due to NN recovering lease) it needs to interrupt any writers currently writing to those blocks. Otherwise, an old writer (who hasn't realized he lost his lease) can continue to write+sync to the blocks, and thus recovery ends up truncating data that has been sync()ed.

      Attachments

        1. hdfs-1186.txt
          20 kB
          Todd Lipcon
        2. HDFS-1186.20s.patch
          16 kB
          Suresh Srinivas
        3. HDFS-1186.20s.1.patch
          19 kB
          Suresh Srinivas

        Issue Links

          Activity

            People

              tlipcon Todd Lipcon
              tlipcon Todd Lipcon
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: