Skip to content

adds early return for all sys tables in ClientTabletCacheImpl.request… #5487

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2025

Conversation

kevinrr888
Copy link
Member

…TabletHosting

From discussion #5474 (comment)

@kevinrr888 kevinrr888 added this to the 4.0.0 milestone Apr 18, 2025
@kevinrr888 kevinrr888 self-assigned this Apr 18, 2025
@ddanielr ddanielr merged commit 9438cc6 into apache:main Apr 19, 2025
8 checks passed
@@ -632,7 +632,7 @@ private void requestTabletHosting(ClientContext context,
}

// System tables should always be hosted
if (AccumuloTable.ROOT.tableId() == tableId || AccumuloTable.METADATA.tableId() == tableId) {
if (AccumuloTable.allTableIds().contains(tableId)) {
Copy link
Member

Choose a reason for hiding this comment

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

I think the class AccumuloTable is really a misnomer. It's really TablesInTheAccumuloNamespace, and would probably be more intuitive if named AccumuloNamespace, with methods like .containsTable(tableId), or .tables().contains(TableId). There are several places in the code that have this pattern of checking that a tableId is contained in this set that would benefit from such a change. A similar comment was made on #5451

Copy link
Member Author

Choose a reason for hiding this comment

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

Created #5498

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.

4 participants