[
https://issues.apache.org/jira/browse/ZOOKEEPER-4796?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated ZOOKEEPER-4796:
--------------------------------------
Labels: pull-request-available (was: )
> Requests submitted first may carry a larger xid resulting in
> ZRUNTIMEINCONSISTENCY
> ----------------------------------------------------------------------------------
>
> Key: ZOOKEEPER-4796
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4796
> Project: ZooKeeper
> Issue Type: Bug
> Components: c client
> Reporter: fanyang
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 10m
> Remaining Estimate: 0h
>
> When multiple threads attempt to submit requests, it's possible for a request
> from a thread that acquired its xid earlier to be inserted after a request
> from a thread that acquired its xid later in the submission queue, which
> causes a ZRUNTIMEINCONSISTENCY error.
> To fix it, acquires the lock before get_xid() and releases it after request
> submission.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)