You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@zookeeper.apache.org by "zeekling (via GitHub)" <gi...@apache.org> on 2025/06/01 16:00:31 UTC
Re: [PR] ZOOKEEPER-4930: Add metrics for TTL node deletion [zookeeper]
zeekling commented on code in PR #2261:
URL: https://github.com/apache/zookeeper/pull/2261#discussion_r2119274686
##########
zookeeper-server/src/main/java/org/apache/zookeeper/server/DataTree.java:
##########
@@ -584,6 +584,7 @@ public void deleteNode(String path, long zxid) throws NoNodeException {
containers.remove(path);
} else if (ephemeralType == EphemeralType.TTL) {
ttls.remove(path);
+ ServerMetrics.getMetrics().TTL_NODE_DELETED_COUNT.add(1);
Review Comment:
create Node need metrics alse.
--
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: notifications-unsubscribe@zookeeper.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org