Skip to content

Conversation

@keith-turner
Copy link
Contributor

Root and metadata table scans were not setting scan executor names. This information will be needed by #5986

@keith-turner keith-turner added this to the 2.1.5 milestone Nov 20, 2025
ScanDispatch.builder().setExecutorName("root").build();
private static final ScanDispatch META_SCAN_DISPATCH =
ScanDispatch.builder().setExecutorName("meta").build();

public void executeReadAhead(KeyExtent tablet, ScanDispatcher dispatcher, ScanSession<?> scanInfo,
Runnable task) {

task = ScanSession.wrap(scanInfo, task);

if (tablet.isRootTablet()) {
// TODO make meta dispatch??
Copy link
Member

@DomGarguilo DomGarguilo Nov 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not changed in this PR but do you happen to know what these TODO comments mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For user tables plugins can dispatch their scans to different executors. For the metadata and root tablets it hard coded which executors they will use for scans. Those comments are about those diffs.

Copy link
Member

@DomGarguilo DomGarguilo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@keith-turner keith-turner changed the base branch from main to 2.1 November 21, 2025 20:19
@keith-turner keith-turner merged commit 0942f30 into apache:2.1 Nov 21, 2025
8 checks passed
@keith-turner keith-turner deleted the meta-exec-name branch November 21, 2025 20:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants