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

An error occurs when scanning with reversed=true and loadColumnFamiliesOnDemand=true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.0.0
    • phoenix
    • None
    • Reviewed
    • Throws DoNotRetryIOException when you ask for a reverse scan loading adjacent column families on demand. Previous it threw IllegalStateException

    Description

      I'm facing the following error when scanning with reversed=true and loadColumnFamiliesOnDemand=true:

      java.lang.IllegalStateException: requestSeek cannot be called on ReversedKeyValueHeap
      	at org.apache.hadoop.hbase.regionserver.ReversedKeyValueHeap.requestSeek(ReversedKeyValueHeap.java:66)
      	at org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.joinedHeapMayHaveData(HRegion.java:6725)
      	at org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.nextInternal(HRegion.java:6652)
      	at org.apache.hadoop.hbase.regionserver.HRegion$RegionScannerImpl.nextRaw(HRegion.java:6364)
      	at org.apache.hadoop.hbase.regionserver.RSRpcServices.scan(RSRpcServices.java:3108)
      	at org.apache.hadoop.hbase.regionserver.RSRpcServices.scan(RSRpcServices.java:3345)
      	at org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos$ClientService$2.callBlockingMethod(ClientProtos.java:41548)
      	at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:409)
      	at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:130)
      	at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:324)
      	at org.apache.hadoop.hbase.ipc.RpcExecutor$Handler.run(RpcExecutor.java:304)
      

      I will attach a UT patch to reproduce this issue.

      Attachments

        1. HBASE-20219-UT.patch
          10 kB
          Toshihiro Suzuki
        2. HBASE-20219.master.004.patch
          11 kB
          Toshihiro Suzuki
        3. HBASE-20219.master.003.patch
          11 kB
          Toshihiro Suzuki
        4. HBASE-20219.master.002.patch
          11 kB
          Toshihiro Suzuki
        5. HBASE-20219.master.001.patch
          13 kB
          Toshihiro Suzuki

        Issue Links

          Activity

            People

              brfrn169 Toshihiro Suzuki
              brfrn169 Toshihiro Suzuki
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: