dlmarion commented on code in PR #5490: URL: https://github.com/apache/accumulo/pull/5490#discussion_r2052898509
########## core/src/main/java/org/apache/accumulo/core/clientImpl/OfflineIterator.java: ########## @@ -345,9 +245,13 @@ private SortedKeyValueIterator<Key,Value> createIterator(KeyExtent extent, MultiIterator multiIter = new MultiIterator(readers, extent); - OfflineIteratorEnvironment iterEnv = - new OfflineIteratorEnvironment(context, tableId, authorizations, tableCC, false, - samplerConfImpl == null ? null : samplerConfImpl.toSamplerConfiguration()); + ClientIteratorEnvironment.Builder iterEnvBuilder = + new ClientIteratorEnvironment.Builder().withAuthorizations(authorizations) + .withScope(IteratorScope.scan).withTableId(tableId).withClient(context); + if (scannerSamplerConfig != null) { + iterEnvBuilder.withSamplerConfiguration(scannerSamplerConfig); + } + IteratorEnvironment iterEnv = iterEnvBuilder.build(); Review Comment: Regarding the missing `tableCC`, by setting `withClient(ClientContext)`, it will create a `ClientServiceEnvironmentImpl` for the calls to ` getServiceEnv` and `getPluginEnv` and the table configuration can be retrieved from that object. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@accumulo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org