Closed oleriajm closed 9 months ago
Hi @oleriajm
Thank you for taking the time to contribute to a Neo4j project, we appreciate all community engagement. Before we review a change we require that users have signed our Contributor License Agreement(CLA). This allows the "whitelist-check (pull-request)" part of our build process to pass. For more details on signing our CLA please see: https://neo4j.com/developer/cla/. Specifically the 'How to Sign' section.
Fixed by PR https://github.com/neo4j/neo4j-go-driver/pull/570, attempting to use a closed session now returns a usage error. Thank you @oleriajm for bringing this to our attention 👍.
The Session must not be usable after the caller closed it explicitly.
Following pattern just works at the moment
This is because Closing session cleans up pool/router etc, but all the references are still preserved.
As a good practice, the behavior should be fail-fast/fail-hard once you called
Close
on it