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
Copy file name to clipboardExpand all lines: x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/accesscontrol/DocumentSubsetBitsetCache.java
+19-2Lines changed: 19 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -364,10 +364,20 @@ public String toString() {
364
364
}
365
365
366
366
/**
367
-
* This method verifies that the two internal data structures ({@link #bitsetCache} and {@link #keysByIndex}) are consistent with one
368
-
* another. This method is only called by tests.
367
+
* This test-only method verifies that the two internal data structures ({@link #bitsetCache} and {@link #keysByIndex}) are consistent
368
+
* with one another.
369
369
*/
370
+
// visible for testing
370
371
voidverifyInternalConsistency() {
372
+
verifyInternalConsistencyCacheToKeys();
373
+
verifyInternalConsistencyKeysToCache();
374
+
}
375
+
376
+
/**
377
+
* This test-only method iterates over the {@link #bitsetCache} and checks that {@link #keysByIndex} is consistent with it.
0 commit comments