Haonan Hou created IOTDB-3943:
---------------------------------

             Summary: Optimize session timeout feature
                 Key: IOTDB-3943
                 URL: https://issues.apache.org/jira/browse/IOTDB-3943
             Project: Apache IoTDB
          Issue Type: Improvement
            Reporter: Haonan Hou


Users may forget to close sessions. Such idle connections lead to a waste of 
server resource and in the worst case, take up all the memory of server. 
Session timeout is trying to solve such problem.

Currently this feature has other problems
 # Once the session is cleared by session timeout, the client will not get the 
status, when client tries to use the session again, server will throw NPE. We 
should throw connect exception here to client, so that session pool can catch 
it and uses another session to connect.
 # Metric module will insert data to IoTDB, we need to consider use session 
pool in this module.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to