ydb-java-sdk icon indicating copy to clipboard operation
ydb-java-sdk copied to clipboard

Add control of session state

Open alex268 opened this issue 1 year ago • 0 comments

Current implementation of sessions and the session pool doesn't include the control of the session state. And we often have next problems:

  1. Usage of session after closing
  2. Parallel usage of one session
  3. Deleting session by client error or canceling

We can resolve these problem by adding the control of current session state - idle, active, executing, canceled and etc. And every action on the session can check this state and returns an error if client uses session in wrong way

alex268 avatar Feb 27 '24 08:02 alex268