You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What I do as follows: BackgroundCallback bc = new BackgroundCallback() { @Override public void processResult(CuratorFramework client, CuratorEvent event) throws Exception { System.out.println (" type : " + event.getType()+ " ResultCode:"+event.getResultCode()+" path:"+event.getPath()); } }; client.create() .creatingParentContainersIfNeeded() .withProtection() .withMode(CreateMode.EPHEMERAL_SEQUENTIAL) .withACL(ZooDefs.Ids.OPEN_ACL_UNSAFE) .inBackground(bc) .forPath("/ephemeral/ephemeral_sequentialtest", datas.getBytes());
I Then I got :
type : CREATE ResultCode:0 path:/ephemeral/_c_626fca12-0115-45e8-99fa-0a32184e5ab3-ephemeral_sequentialtest
Actually I saw the created path in zookeeper is
/ephemeral/_c_626fca12-0115-45e8-99fa-0a32184e5ab3-ephemeral_sequentialtest0000000000
Then I confused , Program execution is wrong, or am I wrong?
The text was updated successfully, but these errors were encountered:
What I do as follows:
BackgroundCallback bc = new BackgroundCallback() { @Override public void processResult(CuratorFramework client, CuratorEvent event) throws Exception { System.out.println (" type : " + event.getType()+ " ResultCode:"+event.getResultCode()+" path:"+event.getPath()); } }; client.create() .creatingParentContainersIfNeeded() .withProtection() .withMode(CreateMode.EPHEMERAL_SEQUENTIAL) .withACL(ZooDefs.Ids.OPEN_ACL_UNSAFE) .inBackground(bc) .forPath("/ephemeral/ephemeral_sequentialtest", datas.getBytes());
I Then I got :
type : CREATE ResultCode:0 path:/ephemeral/_c_626fca12-0115-45e8-99fa-0a32184e5ab3-ephemeral_sequentialtest
Actually I saw the created path in zookeeper is
/ephemeral/_c_626fca12-0115-45e8-99fa-0a32184e5ab3-ephemeral_sequentialtest0000000000
Then I confused , Program execution is wrong, or am I wrong?
The text was updated successfully, but these errors were encountered: