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

ConcurrentModificationException in BucketAllocator

    Details

    • Hadoop Flags:
      Reviewed

      Description

      The BucketCache WriterThread calls BucketCache.freeSpace() upon draining the RAM queue containing entries to be cached. freeSpace() in turn calls BucketSizeInfo.statistics() through BucketAllocator.getIndexStatistics(), which iterates over 'bucketList'. At the same time another WriterThread might call BucketAllocator.allocateBlock(), which may call BucketSizeInfo.allocateBlock(), add a bucket to 'bucketList' and consequently cause a ConcurrentModificationException. Calls to BucketAllocator.allocateBlock() are synchronized, but calls to BucketAllocator.getIndexStatistics() are not, which allows this race to occur.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                arjenroodselaar Arjen Roodselaar
                Reporter:
                arjenroodselaar Arjen Roodselaar
              • Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: