Skip to content

Commit 4d052d7

Browse files
authored
Fix RemoteClusterSecurityFcActionAuthorizationIT testIndicesPrivilegesAreEnforcedForCcrRestoreSessionActions to wait for references to be cleared (fixes #127782) (#127888)
1 parent a7a430f commit 4d052d7

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
@@ -432,9 +432,6 @@ tests:
432432
- class: org.elasticsearch.backwards.MixedClusterClientYamlTestSuiteIT
433433
method: test {p0=search/350_point_in_time/point-in-time with index filter}
434434
issue: https://github.com/elastic/elasticsearch/issues/127741
435-
- class: org.elasticsearch.xpack.remotecluster.RemoteClusterSecurityFcActionAuthorizationIT
436-
method: testIndicesPrivilegesAreEnforcedForCcrRestoreSessionActions
437-
issue: https://github.com/elastic/elasticsearch/issues/127782
438435
- class: org.elasticsearch.compute.aggregation.FilteredGroupingAggregatorFunctionTests
439436
method: testSimpleCircuitBreaking
440437
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)