Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
Reviewed
-
Phoenix
Description
While debugging why reseek is so slow I found that it is quite broken for encoded scanners.
The problem is this:
AbstractScannerV2.reseekTo(...) calls isSeeked() to check whether scanner was seeked or not. If it was it checks whether the KV we want to seek to is in the current block, if not it always consults the index blocks again.
isSeeked checks the blockBuffer member, which is not used by EncodedScannerV2 and thus always returns false, which in turns causes an index lookup for each reseek.
Attachments
Attachments
Issue Links
- relates to
-
HBASE-4433 avoid extra next (potentially a seek) if done with column/row
- Closed