diff options
author | shenjiatong <yshxxsjt715@gmail.com> | 2020-04-09 18:00:39 +0800 |
---|---|---|
committer | norman shen <yshxxsjt715@gmail.com> | 2020-05-29 14:07:15 +0000 |
commit | 39f770f55b3331b7a99b3ea42a34982a20635cf2 (patch) | |
tree | 4a50a1f671b71e4d89f3cb9a5a9fed74183b3008 | |
parent | f3e4d426401e6d4dab9efcd4e04585752934f06c (diff) | |
download | oslo-messaging-39f770f55b3331b7a99b3ea42a34982a20635cf2.tar.gz |
Print warning message when connection running out12.1.1
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)
-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 |