korlov42 commented on code in PR #4827:
URL: https://github.com/apache/ignite-3/pull/4827#discussion_r1871136639


##########
modules/sql-engine/src/test/java/org/apache/ignite/internal/sql/engine/exec/ExecutionServiceImplTest.java:
##########
@@ -1081,6 +1041,70 @@ public void timeoutFiredOnInitialization() throws 
Throwable {
         }
     }
 
+    @Test
+    void executionsWithTheSameQueryIdMustNotInterfere() {
+        QueryPlan plan = prepare("SELECT * FROM test_tbl", 
operationContext(null).build());
+
+        String expectedExceptionMessage = "This is expected";
+
+        TestNode corruptedNode = testCluster.node(nodeNames.get(2));
+        corruptedNode.interceptor((nodeName, msg, original) -> {
+            if (msg instanceof QueryBatchRequestMessage) {
+                corruptedNode.messageService().send(nodeName, new 
SqlQueryMessagesFactory().errorMessage()
+                        .queryId(((QueryBatchRequestMessage) msg).queryId())
+                        .executionToken(((QueryBatchRequestMessage) 
msg).executionToken())
+                        .fragmentId(((QueryBatchRequestMessage) 
msg).fragmentId())
+                        .message(expectedExceptionMessage)
+                        .traceId(((QueryBatchRequestMessage) msg).queryId())
+                        .code(Common.INTERNAL_ERR)
+                        .build()
+                );
+            } else {
+                original.onMessage(nodeName, msg);
+            }
+
+            return nullCompletedFuture();
+        });
+
+        SqlOperationContext ctx = operationContext(null).build();

Review Comment:
   replaced, thanks



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to