dlmarion commented on code in PR #2665:
URL: https://github.com/apache/accumulo/pull/2665#discussion_r882040710
##########
core/src/main/java/org/apache/accumulo/core/clientImpl/TabletServerBatchReaderIterator.java:
##########
@@ -453,26 +482,40 @@ public void run() {
private void doLookups(Map<String,Map<KeyExtent,List<Range>>> binnedRanges,
final ResultReceiver receiver, List<Column> columns) {
- if (timedoutServers.containsAll(binnedRanges.keySet())) {
- // all servers have timed out
- throw new TimedOutException(timedoutServers);
- }
-
- // when there are lots of threads and a few tablet servers
- // it is good to break request to tablet servers up, the
- // following code determines if this is the case
int maxTabletsPerRequest = Integer.MAX_VALUE;
- if (numThreads / binnedRanges.size() > 1) {
- int totalNumberOfTablets = 0;
- for (Entry<String,Map<KeyExtent,List<Range>>> entry :
binnedRanges.entrySet()) {
- totalNumberOfTablets += entry.getValue().size();
- }
- maxTabletsPerRequest = totalNumberOfTablets / numThreads;
- if (maxTabletsPerRequest == 0) {
- maxTabletsPerRequest = 1;
+ long busyTimeout = 0;
+ Duration scanServerDispatcherDelay = null;
+ Map<String,ScanAttemptsImpl.ScanAttemptReporter> reporters = Map.of();
+
+ if (options.getConsistencyLevel().equals(ConsistencyLevel.EVENTUAL)) {
Review Comment:
The ScanServer serves data from a Tablet's files based on the Tablet
metadata in the cache in the ScanServer. The duration for which the metadata is
cached (and then refreshed) is based on the property
SSERV_CACHED_TABLET_METADATA_EXPIRATION. When the Tablet metadata cache in the
ScanServer is refreshed, then the current set of files (newly bulk loaded or
compacted) will then be available. Does this answer your question @wjsl ?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]