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

Rare failure in TestLruBlockCache

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 1.4.0, 2.0.0
    • test
    • None

    Description

      [ERROR] testCacheEvictionThreadSafe(org.apache.hadoop.hbase.io.hfile.TestLruBlockCache) Time elapsed: 0.028 s <<< FAILURE!
      java.lang.AssertionError: expected:<0> but was:<1>
      at org.apache.hadoop.hbase.io.hfile.TestLruBlockCache.testCacheEvictionThreadSafe(TestLruBlockCache.java:86)

      Fix for this I think is waiting for the block count to drop to zero after awaiting shutdown of the executor pool. There's a rare race here. Tests look good using a Waiter predicate so far, but I haven't finished all 100 iterations yet.

      Attachments

        1. HBASE-19138.patch
          2 kB
          Andrew Kyle Purtell

        Activity

          People

            apurtell Andrew Kyle Purtell
            apurtell Andrew Kyle Purtell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: