Skip to content

Fixes LocatorIT when locating tablets for offline table#6194

Merged
dlmarion merged 2 commits intoapache:2.1from
dlmarion:fix-locator-it
Mar 9, 2026
Merged

Fixes LocatorIT when locating tablets for offline table#6194
dlmarion merged 2 commits intoapache:2.1from
dlmarion:fix-locator-it

Conversation

@dlmarion
Copy link
Copy Markdown
Contributor

@dlmarion dlmarion commented Mar 6, 2026

The TabletLocator no longer throws an exception when trying to locate tablets for an offline table due to the changes in PR #6156 that allows Scan Servers to scan an offline table.

The TabletLocator no longer throws an exception when
trying to locate tablets for an offline table due to
the changes in PR apache#6156 that allows Scan Servers to
scan an offline table.
@dlmarion dlmarion added this to the 2.1.5 milestone Mar 6, 2026
@dlmarion dlmarion self-assigned this Mar 6, 2026

tableOps.offline(tableName, true);

assertThrows(TableOfflineException.class, () -> tableOps.locate(tableName, ranges));
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could this be modified to check the return value for this case?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I reverted this change in the most recent commit and instead put a check in TableOperationsImpl to ensure the behavior didn't change between releases. I re-ran ScanServerOfflineTableIT with these changes and it works, the Scanner/BatchScanner code don't use TableOperations.

@dlmarion dlmarion merged commit 20e444a into apache:2.1 Mar 9, 2026
9 checks passed
@dlmarion dlmarion deleted the fix-locator-it branch March 9, 2026 12:14
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