Merge "Print warning message when connection running out"

This commit is contained in:
Zuul 2020-05-29 11:38:38 +00:00 committed by Gerrit Code Review
commit 4fc9e70aa1
1 changed files with 4 additions and 0 deletions

View File

@ -98,6 +98,10 @@ class Pool(object, metaclass=abc.ABCMeta):
self._current_size += 1
break
LOG.warning("Connection pool limit exceeded: "
"current size %s surpasses max "
"configured rpc_conn_pool_size %s",
self._current_size, self._max_size)
wait_condition(self._cond)
# We've grabbed a slot and dropped the lock, now do the creation