From cf84f64e5ac7adf2fdcb011fc51da7cfc2bec14d Mon Sep 17 00:00:00 2001 From: Moritz Mack Date: Thu, 8 May 2025 08:56:37 +0200 Subject: [PATCH] Fix RemoteClusterSecurityFcActionAuthorizationIT testIndicesPrivilegesAreEnforcedForCcrRestoreSessionActions to wait for references to be cleared (fixes #127782) --- muted-tests.yml | 3 --- .../RemoteClusterSecurityFcActionAuthorizationIT.java | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/muted-tests.yml b/muted-tests.yml index 6e2ba819eab8a..f317b40374cee 100644 --- a/muted-tests.yml +++ b/muted-tests.yml @@ -435,9 +435,6 @@ tests: - class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT method: test {p0=search/350_point_in_time/point-in-time with index filter} issue: https://github.com/elastic/elasticsearch/issues/127741 -- class: org.elasticsearch.xpack.remotecluster.RemoteClusterSecurityFcActionAuthorizationIT - method: testIndicesPrivilegesAreEnforcedForCcrRestoreSessionActions - issue: https://github.com/elastic/elasticsearch/issues/127782 - class: org.elasticsearch.compute.aggregation.FilteredGroupingAggregatorFunctionTests method: testSimpleCircuitBreaking issue: https://github.com/elastic/elasticsearch/issues/127833 diff --git a/x-pack/plugin/security/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/remotecluster/RemoteClusterSecurityFcActionAuthorizationIT.java b/x-pack/plugin/security/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/remotecluster/RemoteClusterSecurityFcActionAuthorizationIT.java index c9630a4adab3b..c510347dc9f7e 100644 --- a/x-pack/plugin/security/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/remotecluster/RemoteClusterSecurityFcActionAuthorizationIT.java +++ b/x-pack/plugin/security/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/remotecluster/RemoteClusterSecurityFcActionAuthorizationIT.java @@ -281,7 +281,7 @@ public void testIndicesPrivilegesAreEnforcedForCcrRestoreSessionActions() throws GetCcrRestoreFileChunkAction.REMOTE_TYPE, new GetCcrRestoreFileChunkRequest(response2.getNode(), sessionUUID2, leaderIndex2FileName, 1, shardId2) ); - assertFalse(getChunkResponse.getChunk().hasReferences()); + assertBusy(() -> assertFalse(getChunkResponse.getChunk().hasReferences())); // Clear restore session fails if index is unauthorized final var e4 = expectThrows(