Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
-
Description
A scan operation iterates over all rows of a table or a subrange of the table. The synchronous nature in which the data is served at the client side hinders the speed the application traverses the data: it increases the overall processing time, and may cause a great variance in the times the application waits for the next piece of data.
The scanner next() method at the client side invokes an RPC to the regionserver and then stores the results in a cache. The application can specify how many rows will be transmitted per RPC; by default this is set to 100 rows.
The cache can be considered as a producer-consumer queue, where the hbase client pushes the data to the queue and the application consumes it. Currently this queue is synchronous, i.e., blocking. More specifically, when the application consumed all the data from the cache — so the cache is empty — the hbase client retrieves additional data from the server and re-fills the cache with new data. During this time the application is blocked.
Under the assumption that the application processing time can be balanced by the time it takes to retrieve the data, an asynchronous approach can reduce the time the application is waiting for data.
We attach a design document.
We also have a patch that is based on a private branch, and some evaluation results of this code.
Attachments
Attachments
Issue Links
- is duplicated by
-
HBASE-8691 High-Throughput Streaming Scan API
- Closed
- is related to
-
HBASE-11544 [Ergonomics] hbase.client.scanner.caching is dogged and will try to return batch even if it means OOME
- Closed
-
HBASE-13082 Coarsen StoreScanner locks to RegionScanner
- Closed
-
HBASE-13090 Progress heartbeats for long running scanners
- Closed
-
HBASE-12994 Improve network utilization for scanning RPC requests by preloading the next set of results on the server
- Closed
- relates to
-
HBASE-13719 Asynchronous scanner -- cache size-in-bytes bug fix
- Closed
- links to