Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-8818 [thrift2] Update Thrift2 to supersede Thrift1 and equal REST
  3. HBASE-8946

Add a new function to Thrift 2 to open scanner, get results and close scanner

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.98.0, 0.95.2, 0.94.11
    • Thrift

    Description

      We found, very often we open a scanner , get x number of rows , then close the scanner immediately. The attached patch , add a new function getScannerResults that does just that.

      Using getScannerResults function reduce number of calls to thrift server. Also since the scanner gets closed immediately, it is less prone to cause memory leak.

      Attachments

        1. HBASE-8946.patch
          53 kB
          Hamed Madani
        2. HBASE-8946-V2.patch
          53 kB
          Hamed Madani
        3. HBASE-8946-V3.patch
          55 kB
          Hamed Madani
        4. HBASE-8946-v4.patch
          56 kB
          Hamed Madani
        5. HBASE-8946-v5.patch
          56 kB
          Hamed Madani
        6. HBASE-8946-v5-0.94.patch
          67 kB
          Hamed Madani

        Issue Links

          Activity

            People

              madani Hamed Madani
              madani Hamed Madani
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: