Ver código fonte

Fix EQL double invoking listener (#124918)

We need to break out early here, otherwise we double resolve the
listener in the following code potentially.
Armin Braun 7 meses atrás
pai
commit
c9203e7304

+ 5 - 0
docs/changelog/124918.yaml

@@ -0,0 +1,5 @@
+pr: 124918
+summary: Fix EQL double invoking listener
+area: EQL
+type: bug
+issues: []

+ 1 - 0
x-pack/plugin/eql/src/main/java/org/elasticsearch/xpack/eql/execution/sequence/TumblingWindow.java

@@ -171,6 +171,7 @@ public class TumblingWindow implements Executable {
     private void tumbleWindow(int currentStage, ActionListener<Payload> listener) {
         if (allowPartialSequenceResults == false && shardFailures.isEmpty() == false) {
             doPayload(listener);
+            return;
         }
         if (currentStage > matcher.firstPositiveStage && matcher.hasCandidates() == false) {
             if (restartWindowFromTailQuery) {