AmatyaAvadhanula commented on a change in pull request #12298:
URL: https://github.com/apache/druid/pull/12298#discussion_r820555832
##########
File path:
core/src/main/java/org/apache/druid/java/util/http/client/pool/ResourcePool.java
##########
@@ -199,7 +241,7 @@ V get()
// resourceHolderList can't have nulls, so we'll use a null to signal
that we need to create a new resource.
final V poolVal;
synchronized (this) {
- while (!closed && resourceHolderList.size() == 0 && deficit == 0) {
+ while (!closed && (numLentResources == maxSize)) {
Review comment:
It is needed as an alternative for resourceHolderList.size() which works
for both lazy and eager initialization
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]