Marcosrico commented on code in PR #2535:
URL: https://github.com/apache/helix/pull/2535#discussion_r1231336589
##########
meta-client/src/main/java/org/apache/helix/metaclient/impl/zk/util/ZkMetaClientUtil.java:
##########
@@ -262,6 +262,14 @@ public static MetaClientInterface.ConnectState
translateKeeperStateToMetaClientC
}
}
+ public static MetaClientInterface.Stat convertZkStatToStat(
+ org.apache.zookeeper.data.Stat zkStat) {
+ return new MetaClientInterface.Stat(
+ convertZkEntryModeToMetaClientEntryMode(zkStat.getEphemeralOwner()),
zkStat.getVersion(),
+ zkStat.getCtime(), zkStat.getMtime(),
+ EphemeralType.TTL.getValue(zkStat.getEphemeralOwner()));
Review Comment:
I remember there was a conversation a while ago where
`zkStat.getEphemeralOwner() `is buggy where it doesn't actually return the
proper owner (if I recall correctly we contacted the open source committee for
apache ZooKeeper). Not sure if this was fixed?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]