Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: closes pool maintainer on invalidation (#784)
* fix: closes pool maintainer on invalidation When the session pool is marked as invalid, we immediately close the pool maintainer in order to keep it from trying to replinish the pool. This way we prevent useless batch create sessions requests. * fix: checks for pool maintainer closed status When closing the pool, only waits for the pool maintainer to close if it has not been closed before. * fix: only closes pool maintainer if not closed Makes sure to close the pool maintainer only if it has not been closed already. Also before returning to the caller, makes sure to mark the closing as complete if there are no pending closures. * fix: avoids npe when closing pool maintainer * fix: checks pool maintainer is not closed on close Verifies that the pool maintainer is not closed before closing it. Also moves the check of pendingClosures into the synchronized block to make sure no stale reads are made.
- Loading branch information