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
[ML] remove thread sleep from results persister (#65904) (#66034)
* [ML] remove thread sleep from results persister
Having a thread sleep in a recurring action may cause issues on node shutdown.
What if the thread is sleeping while a nice shutdown is occurring? Since these retry timeouts
can extend to a larger period of time, we should instead use scheduled tasks + the threadpool.
This allows the retries to be effectively canceled instead of waiting for a thread to wake back up.
closes#65890
Copy file name to clipboardExpand all lines: x-pack/plugin/ml/qa/native-multi-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/ml/integration/BulkFailureRetryIT.java
Copy file name to clipboardExpand all lines: x-pack/plugin/ml/src/internalClusterTest/java/org/elasticsearch/xpack/ml/integration/AutodetectResultProcessorIT.java
Copy file name to clipboardExpand all lines: x-pack/plugin/ml/src/internalClusterTest/java/org/elasticsearch/xpack/ml/integration/EstablishedMemUsageIT.java
Copy file name to clipboardExpand all lines: x-pack/plugin/ml/src/internalClusterTest/java/org/elasticsearch/xpack/ml/integration/JobResultsProviderIT.java
Copy file name to clipboardExpand all lines: x-pack/plugin/ml/src/internalClusterTest/java/org/elasticsearch/xpack/ml/integration/JobStorageDeletionTaskIT.java
+2-3
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,6 @@
48
48
importstaticorg.hamcrest.Matchers.equalTo;
49
49
importstaticorg.hamcrest.Matchers.is;
50
50
importstaticorg.hamcrest.Matchers.nullValue;
51
-
importstaticorg.mockito.Mockito.mock;
52
51
53
52
/**
54
53
* Test that ML does not touch unnecessary indices when removing job index aliases
@@ -64,7 +63,7 @@ public class JobStorageDeletionTaskIT extends BaseMlIntegTestCase {
0 commit comments