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

ScanResponses contain only one cell each

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 3.0.0, 2.2.0, 2.1.1
    • Component/s: Performance, Scanners
    • Labels:
      None
    • Environment:

      HBase 2.1.0

      Hadoop 2.8.4

      Java 8

    • Hadoop Flags:
      Reviewed

      Description

      I have a long row with a bunch of columns that I'm scanning with setAllowPartialResults(true). In the response I'm getting the first partial ScanResponse being around 2MB with multiple cells while all of the consequent ones being 1 cell per ScanResponse. After digging more, I found that each of those single cell ScanResponse partials are preceded by a heartbeat (zero cells). This results in two requests per cell to a regionserver.

      I've attached code to reproduce it on hbase version 2.1.0 (it works as expected on 2.0.0 and 2.0.1).

      App.java

      I'm fairly certain it's a serverside issue as gohbase client is having the same issue. I have not tried to reproduce this with multi-row scan.

        Attachments

        1. App.java
          3 kB
          Andrey Elenskiy
        2. HBASE-21032.patch
          7 kB
          Duo Zhang
        3. HBASE-21032-v1.patch
          7 kB
          Duo Zhang
        4. HBASE-21032-v1.patch
          7 kB
          stack

          Activity

            People

            • Assignee:
              timoha Andrey Elenskiy
              Reporter:
              timoha Andrey Elenskiy
            • Votes:
              1 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: