diff options
author | shenjiatong <yshxxsjt715@gmail.com> | 2020-04-09 18:00:39 +0800 |
---|---|---|
committer | norman shen <yshxxsjt715@gmail.com> | 2020-07-08 20:55:46 +0000 |
commit | fd795bbb8f5aaa740fa810f2248646f6ec3a211e (patch) | |
tree | 1e13c36c73ec5f513e77561ff475641a6f96ef66 | |
parent | c5d17905de32a29352a7ad31fd1c7dcde8887017 (diff) | |
download | oslo-messaging-fd795bbb8f5aaa740fa810f2248646f6ec3a211e.tar.gz |
I believe when connection pool running out of available
resources, there will be all kinds of weird consequences
following. So let's print warning logs when we are going
to waiting indefinitely for the lock
Change-Id: I5ca930cada523bc77c644703a0f02b9160816231
Related-bug: #1871813
(cherry picked from commit 96300a32213d1a9bf114b90bef6971d69b839d1d)
(cherry picked from commit 39f770f55b3331b7a99b3ea42a34982a20635cf2)
(cherry picked from commit 1613b7a968f33ef7dc683d05fde05be0c458c8fc)
-rw-r--r-- | oslo_messaging/_drivers/pool.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/oslo_messaging/_drivers/pool.py b/oslo_messaging/_drivers/pool.py index 774c3ab..d8ae9dd 100644 --- a/oslo_messaging/_drivers/pool.py +++ b/oslo_messaging/_drivers/pool.py @@ -100,6 +100,10 @@ class Pool(object): 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 |