[
https://issues.apache.org/jira/browse/ZOOKEEPER-5092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated ZOOKEEPER-5092:
--------------------------------------
Labels: pull-request-available (was: )
> sequence numbers don't increment past Integer.MAX_VALUE
> -------------------------------------------------------
>
> Key: ZOOKEEPER-5092
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-5092
> Project: ZooKeeper
> Issue Type: Bug
> Components: server
> Affects Versions: 3.8.7
> Environment: Mac
> Reporter: Sean Bridges
> Priority: Major
> Labels: pull-request-available
> Attachments: snapshot.245092
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> ZK sequence numbers should wrap around after Integer.MAX_VALUE. Using the db
> in the attached snapshot it doesn't.
>
> Running the following code,
> {code:java}
> ZooKeeper zk = ...
>
> List<ACL> ALLOW_ALL_ACLS =
> Collections.singletonList(new ACL(ZooDefs.Perms.ALL,
> ZooDefs.Ids.ANYONE_ID_UNSAFE));
> String root = "/test";
> String path = zk.create(root + "/child_", new byte[0],
> ALLOW_ALL_ACLS, CreateMode.EPHEMERAL_SEQUENTIAL);
> System.out.println(path);
> {code}
> Always prints out the same znode,
> /test/child_2147483647
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)