gohbase icon indicating copy to clipboard operation
gohbase copied to clipboard

!!! bug? scan the table, count of PartialFlagPerResult is not equal to CellsPerResult ?

Open lungfei opened this issue 7 years ago • 8 comments

when scanner.Next() called, the client crash with error: index out of range the reason is when i scan the table, the count of CellsPerResult is n (n>0), the count of PartialFlagPerResult is 0. but why the count of PartialFlagPerResult is 0?

lungfei avatar Feb 01 '18 07:02 lungfei

hrpc/scan.go DeserializeCellBlocks() 239: scanResp := m.(*pb.ScanResponse) partials := scanResp.GetPartialFlagPerResult() partials = make([]bool, len(scanResp.CellsPerResult), len(scanResp.CellsPerResult)) scanResp.Results = make([]*pb.Result, len(partials)) make partials size is equal to CellsPerResult is ok, but i don't know true or false.

lungfei avatar Feb 01 '18 08:02 lungfei

What version of HBase are you running?

timoha avatar May 24 '18 17:05 timoha

sorry to reply late, HBase version is 1.2.

lungfei avatar Aug 10 '18 07:08 lungfei

+1

WanliTian avatar Sep 05 '18 03:09 WanliTian

i have found the reason why len(CellsPerResult) is not equal to len(PartifalFlagsPerResult) https://blogs.apache.org/hbase/entry/scan_improvements_in_hbase_1

WanliTian avatar Sep 05 '18 04:09 WanliTian

@lungfei 1.2 is ok

WanliTian avatar Sep 05 '18 04:09 WanliTian

Partial flags shouldn't be relied on as they aren't even transmitted by hbase server versions between 1.0.0 and 1.0.3.

Inphi avatar May 24 '19 19:05 Inphi

@lungfei I have a branch that addresses this issue. Please let me know if that works for you too.

Inphi avatar May 26 '19 03:05 Inphi