jnh5y commented on code in PR #21133:
URL: https://github.com/apache/flink/pull/21133#discussion_r1023338175


##########
flink-table/flink-sql-gateway/src/main/java/org/apache/flink/table/gateway/service/SqlGatewayServiceImpl.java:
##########
@@ -311,8 +340,29 @@ public GatewayInfo getGatewayInfo() {
         return GatewayInfo.INSTANCE;
     }
 
+    // 
--------------------------------------------------------------------------------------------
+
     @VisibleForTesting
     public Session getSession(SessionHandle sessionHandle) {
         return sessionManager.getSession(sessionHandle);
     }
+
+    /** Fetch all results for configuring session. */
+    private ResultSet fetchConfigureSessionResult(
+            SessionHandle sessionHandle, OperationHandle operationHandle) {
+        ResultSet firstResult = fetchResults(sessionHandle, operationHandle, 
0, Integer.MAX_VALUE);
+        while (firstResult == ResultSet.NOT_READY_RESULTS) {
+            firstResult = fetchResults(sessionHandle, operationHandle, 0, 
Integer.MAX_VALUE);

Review Comment:
   Let me ask this question:  If one of the operations on the gateway took some 
time, say, 5 seconds.  How many calls to the gateway would we expect to make 
here while waiting for the results to be ready?



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