Skip to content

Commit 834261c

Browse files
authored
Reenable testWhenUserLimitedByOnlyAliasOfIndexCanWriteToIndexWhichWasRolledoverByILMPolicy (#51768)
We suspect the flakiness could’ve come from the fact that the rollover step used to create the new index and roll the write alias to the new index in separate cluster state updates. So the assertion that the rolled index exists could’ve passed in the test but, before the alias was rolled over to the new index, the subsequent write we execute in the test (namely `indexDocs("test_user", "x-pack-test-password", "foo_alias", 1)`) would’ve sent the new document to the source index (ie. foo-logs-000001) This would see the source index containing 3 documents and the rolled index (foo-logs-000002) 0 documents. However, we fixed this and the rollover step executes the “create index and roll alias” in one single cluster update, so this situation should not occur anymore.
1 parent ae8017a commit 834261c

File tree

1 file changed

+0
-3
lines changed
  • x-pack/plugin/ilm/qa/with-security/src/test/java/org/elasticsearch/xpack/security

1 file changed

+0
-3
lines changed

x-pack/plugin/ilm/qa/with-security/src/test/java/org/elasticsearch/xpack/security/PermissionsIT.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
import org.elasticsearch.repositories.fs.FsRepository;
4444
import org.elasticsearch.rest.RestStatus;
4545
import org.elasticsearch.snapshots.SnapshotState;
46-
import org.elasticsearch.test.junit.annotations.TestIssueLogging;
4746
import org.elasticsearch.test.rest.ESRestTestCase;
4847
import org.elasticsearch.xpack.core.ilm.DeleteAction;
4948
import org.elasticsearch.xpack.core.ilm.LifecycleAction;
@@ -273,8 +272,6 @@ public void testCanViewExplainOnUnmanagedIndex() throws Exception {
273272
* Tests when the user is limited by alias of an index is able to write to index
274273
* which was rolled over by an ILM policy.
275274
*/
276-
@AwaitsFix(bugUrl = "https://github.com/elastic/elasticsearch/issues/41440")
277-
@TestIssueLogging(value = "org.elasticsearch:DEBUG", issueUrl = "https://github.com/elastic/elasticsearch/issues/41440")
278275
public void testWhenUserLimitedByOnlyAliasOfIndexCanWriteToIndexWhichWasRolledoverByILMPolicy() throws Exception {
279276
/*
280277
* Setup:

0 commit comments

Comments
 (0)