jojochuang commented on code in PR #8655:
URL: https://github.com/apache/ozone/pull/8655#discussion_r2244506911
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/DeletingServiceMetrics.java:
##########
@@ -160,6 +201,92 @@ public void incrNumRenameEntriesPurged(long
renameEntriesPurged) {
this.numRenameEntriesPurged.incr(renameEntriesPurged);
}
+ public void setKdsLastRunTimestamp(long timestamp) {
+ this.kdsLastRunTimestamp.set(timestamp);
+ }
+
+ public void setKdsCurRunTimestamp(long timestamp) {
+ this.kdsCurRunTimestamp.set(timestamp);
+ }
+
+ private void resetMetrics() {
Review Comment:
why reset metrics after 24hour? usually metrics are reset when restart, and
that's good enough.
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/DeletingServiceMetrics.java:
##########
@@ -160,6 +201,92 @@ public void incrNumRenameEntriesPurged(long
renameEntriesPurged) {
this.numRenameEntriesPurged.incr(renameEntriesPurged);
}
+ public void setKdsLastRunTimestamp(long timestamp) {
+ this.kdsLastRunTimestamp.set(timestamp);
+ }
+
+ public void setKdsCurRunTimestamp(long timestamp) {
+ this.kdsCurRunTimestamp.set(timestamp);
+ }
+
+ private void resetMetrics() {
Review Comment:
why reset metrics after 24hours? usually metrics are reset when restart, and
that's good enough.
--
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]