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
Remove unnecessary refresh listeners from NRTReplicationReaderManager. (opensearch-project#8859)
* Remove unnecessary refresh listeners from NRTReplicationReaderManager.
This change removes RefreshListeners used by InternalEngine to provide waitFor functionality.
These listeners were previously registered onto NRT replicas only to be force released on the next refresh cycle without actually refreshing the reader.
This change also removes the unnecessary blocking refresh from NRTReaderManager because we no longer have conflicting refresh invocations from scheduledRefresh.
Signed-off-by: Marc Handalian <[email protected]>
* Reduce the amount of docs ingested with testPrimaryRelocation and testPrimaryRelocationWithSegRepFailure.
These tests were ingesting 100-1k docs and randomly selecting a refresh policy. Wtih the IMMEDIATE refresh policy a blocking refresh is performed that increase the time required for the primary to block operations for relocation. On my machine this change reduces the test time with max docs from 1m to 5-6s.
Signed-off-by: Marc Handalian <[email protected]>
---------
Signed-off-by: Marc Handalian <[email protected]>
Copy file name to clipboardexpand all lines: server/src/internalClusterTest/java/org/opensearch/indices/replication/SegmentReplicationRelocationIT.java
+2-2
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,7 @@ public void testPrimaryRelocation() throws Exception {
0 commit comments