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

[hboss] removeInMemoryLocks can remove still in-use locks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • hbase-filesystem-1.0.0-alpha1
    • None
    • None
    • Reviewed

    Description

      While implementing HBASE-26437, I was fighting with unit tests which just wouldn't complete. After adding the code change to delete the locks held by the src in a mv src dst operation, releasing the dst lock would claim that the current thread doesn't hold the lock.

      After investigating, the specific contract test in question is doing a rename of the form: mv /foo /foodest. This actually breaks the logic which tries to determine if a lock's path is contained beneath the path we're tryign to clean up. Specifically: cleaning up locks beneath /foo incorrectly removes locks for /foodest

      Attachments

        Issue Links

          Activity

            People

              elserj Josh Elser
              elserj Josh Elser
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: