swikarpat commented on code in PR #18275: URL: https://github.com/apache/kafka/pull/18275#discussion_r1893487456
########## streams/src/main/java/org/apache/kafka/streams/state/internals/metrics/RocksDBMetricsRecorder.java: ########## @@ -462,8 +462,10 @@ public void record(final long now) { writeStallDuration += valueProviders.statistics.getAndResetTickerCount(TickerType.STALL_MICROS); bytesWrittenDuringCompaction += valueProviders.statistics.getAndResetTickerCount(TickerType.COMPACT_WRITE_BYTES); bytesReadDuringCompaction += valueProviders.statistics.getAndResetTickerCount(TickerType.COMPACT_READ_BYTES); - numberOfOpenFiles += valueProviders.statistics.getAndResetTickerCount(TickerType.NO_FILE_OPENS) - - valueProviders.statistics.getAndResetTickerCount(TickerType.NO_FILE_CLOSES); + + // NO_FILE_CLOSES metric was removed in RocksDB 9.7.3. + // This now tracks the total number of file opens since the last reset. + numberOfOpenFiles += valueProviders.statistics.getAndResetTickerCount(TickerType.NO_FILE_OPENS); Review Comment: @mjsax Thanks for the suggestion. I'm not entirely sure how to implement reporting a -1 surrogate and deprecating the metric for the 4.0 release. Could you provide some guidance or point me to relevant examples? NO_FILE_CLOSES metric declared in TickerType.class inside org.rocksdb package. We can't modify that class -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org