shuwenwei commented on issue #159: URL: https://github.com/apache/iotdb-client-go/issues/159#issuecomment-4197125391
The SessionDataSet uses a streaming fetch pattern. It lazily pulls data from the server on each Next() call. This means the underlying session's network connection must remain open throughout the entire iteration process. Once session.Close() is called, the connection is returned to the pool and may be reused by another goroutine. Any subsequent result.Next() calls will attempt to read from a connection that no longer belongs to the original session, causing the panic. You should consume the SessionDataSet before closing the session -- 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]
