You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by GitBox <gi...@apache.org> on 2021/12/02 01:30:04 UTC
[GitHub] [zookeeper] functioner edited a comment on pull request #1596: ZOOKEEPER-4203: Leader swallows the ZooKeeperServer.State.ERROR from Leader.LearnerCnxAcceptor in some concurrency condition
functioner edited a comment on pull request #1596:
URL: https://github.com/apache/zookeeper/pull/1596#issuecomment-984209856
@eolivelli The state check & modification within `setState` method should be atomic as a whole, so `AtomicReference` is not enough (including the `updateAndGet` methods and so on). Now I use `synchronized` for the methods which read/write `state`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@zookeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org