Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GH-1613: Fix Race in Producer Factory
Resolves #1613 Do not clear the cache in `destroy()` - just drain the producer queues instead. Fixes a race condition where a producer could be returned to the cache between draining the queues and clearing the map. Just leave the queue(s) in place to accept new returns. **cherry-pick to 2.5.x, 2.4.x, 2.3.x, 1.3.x** (cherry picked from commit 7ad38c0)
- Loading branch information