Skip to content

migrate scanner to scannerbuilder#3733

Open
apmoriarty wants to merge 4 commits into
integrationfrom
task/migrate-scanner-to-scannerbuilder
Open

migrate scanner to scannerbuilder#3733
apmoriarty wants to merge 4 commits into
integrationfrom
task/migrate-scanner-to-scannerbuilder

Conversation

@apmoriarty

Copy link
Copy Markdown
Collaborator

Migrate most instances of Scanner to using a ScannerBuilder. Another brick in the road to native scan server support.

apmoriarty and others added 3 commits July 20, 2026 13:39
Replace all 22 direct AccumuloClient.createScanner(...) calls in production
code with the ScannerBuilder fluent API. Removes unreachable
TableNotFoundException catch blocks and inlines auth retrieval for single-arg
scanner calls.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ShardReindexMapperTest: update mock expectations to match the new
securityOperations().getUserAuthorizations() call and two-arg createScanner
that ScannerBuilder.build() uses internally.

RangeStream.NumShardFinder: catch RuntimeException in addition to Accumulo
exceptions so a missing metadata table (which build() wraps as RuntimeException)
does not kill the query.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment thread warehouse/query-core/src/main/java/datawave/query/index/lookup/RangeStream.java Outdated
…/RangeStream.java

Co-authored-by: Laura Schanno <lbschanno@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants