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


##########
modules/sql-engine/src/main/java/org/apache/ignite/internal/sql/api/IgniteSqlImpl.java:
##########
@@ -68,4 +96,25 @@ public Statement createStatement(String query) {
     public StatementBuilder statementBuilder() {
         return new StatementBuilderImpl();
     }
+
+    @Override
+    public void start() {
+        executor.scheduleWithFixedDelay(
+                () -> {
+                    for (SessionImpl session : sessions.values()) {
+                        if (session.expired()) {
+                            session.closeAsync();
+                        }
+                    }
+                },
+                SESSION_EXPIRE_CHECK_PERIOD,
+                SESSION_EXPIRE_CHECK_PERIOD,
+                TimeUnit.MILLISECONDS
+        );
+    }
+
+    @Override
+    public void stop() throws Exception {
+        executor.shutdownNow();

Review Comment:
   done



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