dlmarion commented on code in PR #3161:
URL: https://github.com/apache/accumulo/pull/3161#discussion_r1104912500
##########
server/tserver/src/main/java/org/apache/accumulo/tserver/tablet/TabletBase.java:
##########
@@ -229,7 +235,13 @@ public Tablet.LookupResult lookup(List<Range> ranges,
List<KVEntry> results,
Batch nextBatch(SortedKeyValueIterator<Key,Value> iter, Range range,
ScanParameters scanParams)
throws IOException {
- // log.info("In nextBatch..");
+ while (context.getLowMemoryDetector().isRunningLowOnMemory(context,
DetectionScope.SCAN, () -> {
+ return isUserTable;
+ }, () -> {
+ log.info("Not starting next batch because low on memory, extent: {}",
extent);
+ server.getScanMetrics().incrementScanPausedForLowMemory();
+ Uninterruptibles.sleepUninterruptibly(500, TimeUnit.MILLISECONDS);
Review Comment:
Addressed in cacc718
--
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]