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

Avoid local results copy in StoreScanner

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.94.2
    • None
    • None

    Description

      In StoreScanner the number of results is limited to avoid OOMs.
      However, this is done by first adding the KV into a local ArrayList and then copying the entries in this list to the final result list.

      In turns out the this temporary list is only used to keep track of the size of the result set in this loop. Can use a simple int instead.

      Attachments

        1. 6711-0.94-v1.txt
          2 kB
          Lars Hofhansl
        2. 6711-0.96-v1.txt
          3 kB
          Lars Hofhansl

        Activity

          People

            larsh Lars Hofhansl
            larsh Lars Hofhansl
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: