You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by "PDavid (via GitHub)" <gi...@apache.org> on 2026/05/27 14:44:22 UTC
[PR] ZOOKEEPER-5052: Fix stale thread write of primitive in JvmPauseMonitor [zookeeper]
PDavid opened a new pull request, #2397:
URL: https://github.com/apache/zookeeper/pull/2397
Change the three counter fields to volatile to ensure cross-thread visibility when the getters are called from threads other than the monitor thread.
This prevents the JVM caching the stale 0 value. Under CI load or with aggressive JIT optimizations, this manifests as an intermittent 5-second timeout.
--
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
Re: [PR] ZOOKEEPER-5052: Fix stale thread write of primitive in JvmPauseMonitor [zookeeper]
Posted by "PDavid (via GitHub)" <gi...@apache.org>.
PDavid commented on PR #2397:
URL: https://github.com/apache/zookeeper/pull/2397#issuecomment-4719883242
Many thanks @dsmiley, @imankhadiv and @anmolnar for the reviews!
--
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
Re: [PR] ZOOKEEPER-5052: Fix stale thread write of primitive in JvmPauseMonitor [zookeeper]
Posted by "anmolnar (via GitHub)" <gi...@apache.org>.
anmolnar merged PR #2397:
URL: https://github.com/apache/zookeeper/pull/2397
--
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