maedhroz commented on code in PR #3268:
URL: https://github.com/apache/cassandra/pull/3268#discussion_r1585708376


##########
src/java/org/apache/cassandra/concurrent/TaskFactory.java:
##########
@@ -90,6 +90,10 @@ public Runnable toExecute(WithResources withResources, 
Runnable runnable)
         @Override
         public <T> RunnableFuture<T> toSubmit(WithResources withResources, 
Runnable runnable)
         {
+            if (runnable instanceof RunnableDebuggableTask)
+                return withResources.isNoOp() ? newTask(runnable)
+                                              : newTask(withResources, 
runnable);
+
             return withResources.isNoOp() ? newTask(callable(runnable))
                                           : newTask(withResources, 
callable(runnable));
         }

Review Comment:
   It certainly doesn't fail any tests to simplify this...



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