This is an automated email from the ASF dual-hosted git repository.

DomGarguilo pushed a commit to branch 2.1
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/2.1 by this push:
     new 65468a3dad Note that cache impls are monotonically increasing counters 
in Javadoc (#6516)
65468a3dad is described below

commit 65468a3dad130c687018d3151f6e054dd748c37b
Author: Amanda Villarreal <[email protected]>
AuthorDate: Fri Aug 28 08:48:01 2026 -0500

    Note that cache impls are monotonically increasing counters in Javadoc 
(#6516)
    
    * Add javadoc to chache SPI to outline returned counts must be 
monotonically increasing
---
 .../main/java/org/apache/accumulo/core/spi/cache/BlockCache.java  | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git 
a/core/src/main/java/org/apache/accumulo/core/spi/cache/BlockCache.java 
b/core/src/main/java/org/apache/accumulo/core/spi/cache/BlockCache.java
index d9001490cf..2e499097ce 100644
--- a/core/src/main/java/org/apache/accumulo/core/spi/cache/BlockCache.java
+++ b/core/src/main/java/org/apache/accumulo/core/spi/cache/BlockCache.java
@@ -94,7 +94,13 @@ public interface BlockCache {
    */
   Stats getStats();
 
-  /** Cache statistics. */
+  /**
+   * Cache statistics.
+   * <p>
+   * All counts returned by this interface must be monotonically increasing. 
They must never reset
+   * or decrease, as the values are read periodically and the increase between 
readings is what gets
+   * reported.
+   */
   interface Stats {
 
     /**

Reply via email to