[
https://issues.apache.org/jira/browse/IOTDB-3943?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Haonan Hou reassigned IOTDB-3943:
---------------------------------
Assignee: suchenglong
> 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
> Assignee: suchenglong
> Priority: Major
>
> 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.
> https://github.com/apache/iotdb/pull/3483
> 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)