Skip to content

Commit 60dc03c

Browse files
authored
Merge branch 'main' into feature/fix-failing-apt-get
2 parents dd19bc8 + 9a8e503 commit 60dc03c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

muted-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,9 @@ tests:
529529
- class: org.elasticsearch.entitlement.runtime.policy.FileAccessTreeTests
530530
method: testWindowsAbsolutPathAccess
531531
issue: https://github.com/elastic/elasticsearch/issues/129168
532+
- class: org.elasticsearch.xpack.esql.qa.single_node.PushQueriesIT
533+
method: testCaseInsensitiveEquality {KEYWORD}
534+
issue: https://github.com/elastic/elasticsearch/issues/129422
532535

533536
# Examples:
534537
#

server/src/test/java/org/elasticsearch/rest/action/RestCancellableNodeClientTests.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,11 @@ public void addCloseListener(ActionListener<Void> listener) {
304304
// if the channel is already closed, the listener gets notified immediately, from the same thread.
305305
if (open.get() == false) {
306306
listener.onResponse(null);
307+
// Ensure closeLatch is pulled by completing the closeListener with a noop that is ignored if it is already completed.
308+
// Note that when the channel is closed we may see multiple addCloseListener() calls, so we do not assert on isDone() here,
309+
// and since closeListener may already be completed we cannot rely on it to complete the current listener, so we first
310+
// complete it directly and then pass a noop to closeListener.
311+
closeListener.onResponse(ActionListener.assertOnce(ActionListener.noop()));
307312
} else {
308313
assertFalse("close listener already set, only one is allowed!", closeListener.isDone());
309314
closeListener.onResponse(ActionListener.assertOnce(listener));

0 commit comments

Comments
 (0)