jojochuang commented on code in PR #8587: URL: https://github.com/apache/ozone/pull/8587#discussion_r2143776985
########## hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/DeletingServiceMetrics.java: ########## @@ -160,6 +166,18 @@ public void incrNumRenameEntriesPurged(long renameEntriesPurged) { this.numRenameEntriesPurged.incr(renameEntriesPurged); } + public TransactionInfo getLastAOSTransactionId() { + return TransactionInfo.valueOf(lastAOSPurgeTermId.value(), lastAOSPurgeTransactionId.value()); + } + + public synchronized void setLastAOSTransactionId(TransactionInfo transactionInfo) { + TransactionInfo previousTransactionInfo = getLastAOSTransactionId(); + if (transactionInfo.compareTo(previousTransactionInfo) > 0) { + this.lastAOSPurgeTransactionId.set(transactionInfo.getTerm()); + this.lastAOSPurgeTransactionId.set(transactionInfo.getTransactionIndex()); Review Comment: this is probably wrong. See: https://github.com/jojochuang/ozone/pull/583#discussion_r2143770452 -- 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: issues-unsubscr...@ozone.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org For additional commands, e-mail: issues-h...@ozone.apache.org