HBASE-30327 Implement adaptive parallel seek in StoreScanner - #8566
Open
ichsansaid wants to merge 1 commit into
Open
HBASE-30327 Implement adaptive parallel seek in StoreScanner#8566ichsansaid wants to merge 1 commit into
ichsansaid wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Introduces an adaptive parallel seek strategy in
StoreScannerthat gracefully handles thread pool saturation by dynamically switching between parallel and sequential execution based on available capacity.JIRA: https://issues.apache.org/jira/browse/HBASE-30327
Problem
When parallel seek is enabled, all StoreFileScanner seek operations are submitted to the
RS_PARALLEL_SEEKthread pool with an unbounded queue. Under high concurrency, this can lead to:Solution
Adaptive parallel seek checks pool capacity before submission using a conservative approach (
queue.isEmpty() && activeCount < poolSize). When the pool is saturated:Changes
getAvailableParallelSeekCapacity()inStoreScanner(keeps change local)adaptiveParallelSeek()method with proper error handling:scanner.seek()for inline path (not ParallelSeekHandler)hbase.storescanner.adaptive.parallel.seek.enable(default: false)adaptiveParallelSeekEnabledfield toScanInfoConfiguration
hbase.storescanner.adaptive.parallel.seek.enablefalseparallel.seek.enable=true)Testing