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

Batched edit log syncs can reset synctxid throw assertions

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.22.0
    • 0.22.0
    • None
    • None
    • Reviewed

    Description

      The top of FSEditLog.logSync has the following assertion:

              assert editStreams.size() > 0 : "no editlog streams";
      

      which should actually come after checking to see if the sync was already batched in by another thread.

      This is related to a second bug in which the same case causes synctxid to be reset to 0

      Attachments

        1. illustrate-test-failure.txt
          2 kB
          Todd Lipcon
        2. hdfs-1597.txt
          8 kB
          Todd Lipcon
        3. hdfs-1597.txt
          8 kB
          Todd Lipcon
        4. hdfs-1597.txt
          8 kB
          Todd Lipcon

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: