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

'counter' may overflow in BoundedGroupingStrategy

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 1.3.0, 2.0.0
    • wal
    • Reviewed

    Description

      groupName = groupNames[counter.getAndIncrement() % groupNames.length];
      

      Theoretically, counter can overflow and becomes negative then causes an ArrayIndexOutOfBoundsException.

      But in practice, we need 2 billions different identifiers to make this happen, and before the overflow we will run into OOM because of a huge groupNameCache...

      So not sure if it is worth to fix

      Attachments

        1. hbase-15563-v1.patch
          2 kB
          Matt Warhaftig
        2. hbase-15563-v2.patch
          2 kB
          Matt Warhaftig

        Activity

          People

            mwarhaftig Matt Warhaftig
            zhangduo Duo Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: