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

ResultScanner is not closed in SyncTable#finishRemainingHashRanges()

    XMLWordPrintableJSON

Details

    • Reviewed
    • pushed to 1.3 and 1.2. SyncTable was introduced in 1.2, so skipping 1.1.

    Description

      Here is related code:

                ResultScanner targetScanner = targetTable.getScanner(scan);
                for (Result row : targetScanner) {
                  targetHasher.hashResult(row);          
                }
              } // else current batch ends exactly at split end row
      

      targetScanner should be closed upon leaving the if block.

      Attachments

        1. 16090.v1.txt
          1 kB
          Ted Yu
        2. 16090.v1.txt
          1 kB
          Ted Yu

        Activity

          People

            yuzhihong@gmail.com Ted Yu
            yuzhihong@gmail.com Ted Yu
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: