Skip to content

Commit c9203e7

Browse files
Fix EQL double invoking listener (#124918)
We need to break out early here, otherwise we double resolve the listener in the following code potentially.
1 parent e39f14d commit c9203e7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/changelog/124918.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pr: 124918
2+
summary: Fix EQL double invoking listener
3+
area: EQL
4+
type: bug
5+
issues: []

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

+1
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ public void execute(ActionListener<Payload> listener) {
171171
private void tumbleWindow(int currentStage, ActionListener<Payload> listener) {
172172
if (allowPartialSequenceResults == false && shardFailures.isEmpty() == false) {
173173
doPayload(listener);
174+
return;
174175
}
175176
if (currentStage > matcher.firstPositiveStage && matcher.hasCandidates() == false) {
176177
if (restartWindowFromTailQuery) {

0 commit comments

Comments
 (0)