Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-14897

TestTableLockManager.testReapAllTableLocks is flakey

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.3.2, 1.4.3, 2.0.0, 1.2.7
    • None
    • None

    Description

      It comes from email list which stack post.

      This is the some relates QA information.

      https://builds.apache.org/view/H-L/view/HBase/job/HBase-Trunk_matrix/512/jdk=latest1.8,label=Hadoop/testReport/org.apache.hadoop.hbase.master/TestTableLockManager/testReapAllTableLocks/

      The reason is here.

          writeLocksObtained.await();
          writeLocksAttempted.await();
      

      writeLocksAttempted maybe count down to 0 before created node on ZK, and main thread will go on to run lockManager.reapWriteLocks(), And after that node was created on ZK, so relates lock acquire will timeout.

      I upload a patch which can reproduce this issue.

      Attachments

        1. reproduce.patch
          4 kB
          Heng Chen
        2. HBASE-14897.patch
          3 kB
          Heng Chen

        Activity

          People

            chenheng Heng Chen
            chenheng Heng Chen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: