keith-turner commented on a change in pull request #2101:
URL: https://github.com/apache/accumulo/pull/2101#discussion_r631419542



##########
File path: 
server/tserver/src/main/java/org/apache/accumulo/tserver/TabletServerResourceManager.java
##########
@@ -178,14 +180,17 @@ private ExecutorService 
createPriorityExecutor(ScanExecutorConfig sec,
         Comparator<ScanInfo> comparator =
             factory.createComparator(new ScanPrioritizer.CreateParameters() {
 
+              private final Supplier<ServiceEnvironment> senvSupplier =
+                  Suppliers.memoize(() -> new ServiceEnvironmentImpl(context));

Review comment:
       I reviewed that further and found it does not need to be lazily loaded.  
Its only created once when a scan thread pool is created, so there is no per 
scan performance concern.




-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to