netudima commented on code in PR #4902:
URL: https://github.com/apache/cassandra/pull/4902#discussion_r3546583520


##########
src/java/org/apache/cassandra/concurrent/SharedExecutorPool.java:
##########
@@ -123,7 +123,8 @@ void workerEnded(SEPWorker worker)
 
     public Stream<? extends DebuggableTaskRunner> workers()
     {
-        return allWorkers.stream();
+        return Stream.concat(allWorkers.stream(),
+                             
allWorkers.stream().map(SEPWorker::immediateRunner));

Review Comment:
   The runners are retrieved for monitoring purposes and used independently, so 
there is no need for consistency here. A minor benefit in a single iteration is 
to read from the concurrent map once



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to