Skip to content

kazoo hangs in uwsgi  #538

Open
Open
@rhyspang

Description

@rhyspang

I use uwsgi to start django application, which call start method in kazoo client instance to connect zookeeper server, it hangs. even if I use --enable-threads . Exception traceback as follow, could you give me some advise, thanks a lot!

self._zk.start(timeout=timeout)
  File "/Users/rhys/.local/share/virtualenvs/dialog-Pn4M1tPm/lib/python2.7/site-packages/kazoo/client.py", line 559, in start
    self.stop()
  File "/Users/rhys/.local/share/virtualenvs/dialog-Pn4M1tPm/lib/python2.7/site-packages/kazoo/client.py", line 613, in stop
    self._safe_close()
  File "/Users/rhys/.local/share/virtualenvs/dialog-Pn4M1tPm/lib/python2.7/site-packages/kazoo/client.py", line 506, in _safe_close
    if not self._connection.stop(timeout):
  File "/Users/rhys/.local/share/virtualenvs/dialog-Pn4M1tPm/lib/python2.7/site-packages/kazoo/protocol/connection.py", line 180, in stop
    self.connection_stopped.wait(timeout)
  File "/Users/rhys/.pyenv/versions/2.7.15/lib/python2.7/threading.py", line 614, in wait
    self.__cond.wait(timeout)
  File "/Users/rhys/.pyenv/versions/2.7.15/lib/python2.7/threading.py", line 359, in wait
    _sleep(delay)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions