You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit fixes the backward/forward seeking counters in
searchable snapshot statistics. These counters use the current
file pointer position and the new seeking position to compute the
seeking stats, but at the time the stat is computed the current
file pointer position is already updated to the new position,
making the delta always equals to 0.
Copy file name to clipboardExpand all lines: x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/cache/CacheDirectory.java
+16-3Lines changed: 16 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -86,10 +86,16 @@ public Map<String, IndexInputStats> getStats() {
Copy file name to clipboardExpand all lines: x-pack/plugin/searchable-snapshots/src/main/java/org/elasticsearch/xpack/searchablesnapshots/cache/IndexInputStats.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -156,7 +156,7 @@ public TimedCounter getCachedBytesWritten() {
156
156
}
157
157
158
158
@SuppressForbidden(reason = "Handles Long.MIN_VALUE before using Math.abs()")
Copy file name to clipboardExpand all lines: x-pack/plugin/searchable-snapshots/src/test/java/org/elasticsearch/xpack/searchablesnapshots/cache/CacheBufferedIndexInputStatsTests.java
+139-2Lines changed: 139 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -294,6 +294,132 @@ public void testReadBytesNonContiguously() throws Exception {
0 commit comments