Sean Bridges created ZOOKEEPER-5092:
---------------------------------------

             Summary: 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
         Attachments: snapshot.245092

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)

Reply via email to