Skip to content

Commit cf84f64

Browse files
committed
Fix RemoteClusterSecurityFcActionAuthorizationIT testIndicesPrivilegesAreEnforcedForCcrRestoreSessionActions to wait for references to be cleared (fixes #127782)
1 parent e97efd2 commit cf84f64

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

muted-tests.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,9 +435,6 @@ tests:
435435
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
436436
method: test {p0=search/350_point_in_time/point-in-time with index filter}
437437
issue: https://github.com/elastic/elasticsearch/issues/127741
438-
- class: org.elasticsearch.xpack.remotecluster.RemoteClusterSecurityFcActionAuthorizationIT
439-
method: testIndicesPrivilegesAreEnforcedForCcrRestoreSessionActions
440-
issue: https://github.com/elastic/elasticsearch/issues/127782
441438
- class: org.elasticsearch.compute.aggregation.FilteredGroupingAggregatorFunctionTests
442439
method: testSimpleCircuitBreaking
443440
issue: https://github.com/elastic/elasticsearch/issues/127833

x-pack/plugin/security/qa/multi-cluster/src/javaRestTest/java/org/elasticsearch/xpack/remotecluster/RemoteClusterSecurityFcActionAuthorizationIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public void testIndicesPrivilegesAreEnforcedForCcrRestoreSessionActions() throws
281281
GetCcrRestoreFileChunkAction.REMOTE_TYPE,
282282
new GetCcrRestoreFileChunkRequest(response2.getNode(), sessionUUID2, leaderIndex2FileName, 1, shardId2)
283283
);
284-
assertFalse(getChunkResponse.getChunk().hasReferences());
284+
assertBusy(() -> assertFalse(getChunkResponse.getChunk().hasReferences()));
285285

286286
// Clear restore session fails if index is unauthorized
287287
final var e4 = expectThrows(

0 commit comments

Comments
 (0)