Skip to content

Zookeeper client session is not reset when cluster loses session state (authentication failed: EOF) #36

@colinmcintosh

Description

@colinmcintosh

Hi, I noticed an issue where the go-zookeeper client will not reset the session if the Zookeeper cluster loses it's session state (instance reset, redeploy, etc) and the server responds with an EOF. When this happens the client enters an endless loop trying to authenticate with the previous Session ID. It looks like the loop happens here:

zk/conn.go

Line 435 in 50daf81

c.logger.Printf("authentication failed: %s", err)

I haven't had a chance to look through the code yet for this but I'm wondering if anyone knows what process needs to happen to reset the session in the client?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds investigatationNeed to dig into root cause

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions