ptupitsyn commented on code in PR #7246:
URL: https://github.com/apache/ignite-3/pull/7246#discussion_r2640366122


##########
modules/client-handler/src/main/java/org/apache/ignite/client/handler/ClientInboundMessageHandler.java:
##########
@@ -1273,6 +1281,16 @@ public int cancelHandlesCount() {
         return cancelHandles.size();
     }
 
+    /** Returns the number of sequential DDL queries or {@code -1} if DDL 
tracking is disabled. */
+    @TestOnly
+    public int ddlQueriesInRow() {
+        if (queryTypeListener instanceof DdlBatchingSuggester) {
+            return ((DdlBatchingSuggester) 
queryTypeListener).trackedQueriesCount();

Review Comment:
   Can we move this logic to the test to minimize `TestOnly` code?



##########
modules/client-handler/src/main/java/org/apache/ignite/client/handler/ClientInboundMessageHandler.java:
##########
@@ -310,7 +315,8 @@ public ClientInboundMessageHandler(
             BitSet features,
             Map<HandshakeExtension, Object> extensions,
             Function<String, CompletableFuture<PlatformComputeConnection>> 
computeConnectionFunc,
-            HandshakeEventLoopSwitcher handshakeEventLoopSwitcher
+            HandshakeEventLoopSwitcher handshakeEventLoopSwitcher,
+            Supplier<Boolean> ddlBatchingSuggestionEnabled

Review Comment:
   Ok, no big deal.



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

Reply via email to