question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

stuck when create ephemeral node in CONNECTED state event

See original GitHub issue

Hi ,guys, here is my code

        def watch_state(state):
            """
            Listen zookeeper connection events
            """
            if state == KazooState.LOST:
                self.logger.warn('connection to zookeeper lost, session expired')
            elif state == KazooState.SUSPENDED:
                self.logger.warn('connection to zookeeper suspended')
            elif state == KazooState.CONNECTED:
                self.logger.warn('connection to zookeeper restored')
                // stuck when call create node
                self._create_node()

It’s no problem when I use this code in curator, but it is stuck in kazoo, where should I recreate the ephemeral node when kazoo reconnect to zookeeper after session expired ?

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
endlesscodecommented, Apr 13, 2016

I run create_node in another thread 😃

0reactions
zhjunqincommented, Jan 23, 2019

I met similar problem when call any function of create_instance/get_children/get when state == KazooState.CONNECTED

it just stuck there and nothing error or return

Read more comments on GitHub >

github_iconTop Results From Across the Web

Watches and Ephemeral node doesn't work when state of ...
Here is the thing, when there is a state change in the connection, your watcher will also get triggered. There is an Event...
Read more >
PODs stuck in ContainerCreating state on TKGS Guest ...
In vSphere 7.0 U3, after an HA failover or reboot of a TKGS Worker Node, pods will show stuck in ContainerCreating state.
Read more >
Build process fails with error “Insufficient ephemeral-storage ...
After deploying Manage on MAS, the build process hangs for an extended period of time, eventually failing with an error message similar to ......
Read more >
Re: are ephemeral nodes removed when client receives session ...
Client A connected to Leader with session S 2. ... first chain can get stuck on a various places like some quorum nodes...
Read more >
Node Not Ready status after node is in a healthy state - Azure
Check whether your connections remain idle for a long time and rely on the default idle time-out to release its port. If the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found