dcapwell commented on code in PR #2245:
URL: https://github.com/apache/cassandra/pull/2245#discussion_r1162135034


##########
test/simulator/main/org/apache/cassandra/simulator/systems/SimulatedAction.java:
##########
@@ -382,8 +382,11 @@ List<Action> applyToMessage(IInvokableInstance from, 
IInvokableInstance to, IMes
                     notify = from;
                 }
                 boolean isTimeout = deliver != FAILURE;
+                Executor notifierExecutor = notify.executorFor(verb.id);
+                if (notifierExecutor instanceof ImmediateExecutor)

Review Comment:
   its the same as the above logic.  If any stage is `ImmediateExecutor` then 
the executor isn't changed out during simulation... so the logic that requires 
a cast will cause a ClassCastException



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