Skip to content
This repository was archived by the owner on Jul 21, 2021. It is now read-only.
This repository was archived by the owner on Jul 21, 2021. It is now read-only.

data race in conn.go #178

@teou

Description

@teou

hi guys
data race is detected when we run go-zookeeper on : go build -race

WARNING: DATA RACE
Write at :
github.com/samuel/go-zookeeper/zk.(*Conn).recvLoop()
github.com/samuel/go-zookeeper/zk/conn.go:820

Previous read at :
github.com/samuel/go-zookeeper/zk.(*Conn).sendSetWatches()
github.com/samuel/go-zookeeper/zk/conn.go:567

maybe Conn.lastZxid needs to be lock protected?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions