shuwenwei commented on issue #159: URL: https://github.com/apache/iotdb-client-go/issues/159#issuecomment-4197112909
You should always check the error returned by GetSession(). When the pool reaches maxSize and the wait timeout expires, GetSession() returns errTimeout. In this case, the returned session is invalid (zero value). If you ignore the error and continue to use this invalid session, it will cause issues like the panic you encountered. -- 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]
