jixuan1989 opened a new pull request #2049:
URL: https://github.com/apache/iotdb/pull/2049


   Current session Pool has some concurrency problems:
   
   1.
   
   public static void main() {
       queryByRowRecord(); // this method open a new thread to use session.
       Thread.sleep(1000);
       pool.close(); // this method close pool.
   }
   Then the pool will clear all existing sessions, which may lead to some 
leakage and deadlock.
   
   2. `notifyAll()` is not called, which will lead to `wait(1000)` waits too 
long time.
   
   
   3. More log is printed.


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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to