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

Avoid local results copy in StoreScanner

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.94.2
    • Component/s: None
    • Labels:
      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.96-v1.txt
          3 kB
          Lars Hofhansl
        2. 6711-0.94-v1.txt
          2 kB
          Lars Hofhansl

          Activity

            People

            • Assignee:
              lhofhansl Lars Hofhansl
              Reporter:
              lhofhansl Lars Hofhansl
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: