-
Notifications
You must be signed in to change notification settings - Fork 24.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Meta: Fix Watcher Test Failures #42409
Comments
Pinging @elastic/es-core-features |
All tests in SmokeTestWatcherWithSecurityIT failed. It is likely that all share the same root cause.
Relevant Failure with repro lines:10:45:18 org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT > testSearchInputWithInsufficientPrivileges FAILED 10:45:18 org.elasticsearch.client.ResponseException: method [POST], host [http://[::1]:45978], URI [/.watcher-history-*/_search?rest_total_hits_as_int=true], status line [HTTP/1.1 503 Service Unavailable] 10:45:18 {"error":{"root_cause":[],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[]},"status":503} 10:45:18 at __randomizedtesting.SeedInfo.seed([3AF36076A4C37A27:959B3C83AD12D929]:0) 10:45:18 at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:253) 10:45:18 at org.elasticsearch.client.RestClient.performRequest(RestClient.java:231) 10:45:18 at org.elasticsearch.client.RestClient.performRequest(RestClient.java:205) 10:45:18 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.lambda$getWatchHistoryEntry$4(SmokeTestWatcherWithSecurityIT.java:326) 10:45:18 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:850) 10:45:18 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:836) 10:45:18 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.getWatchHistoryEntry(SmokeTestWatcherWithSecurityIT.java:306) 10:45:18 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.getWatchHistoryEntry(SmokeTestWatcherWithSecurityIT.java:301) 10:45:18 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchInputWithInsufficientPrivileges(SmokeTestWatcherWithSecurityIT.java:182) 10:45:29 REPRODUCE WITH: ./gradlew :x-pack:qa:smoke-test-watcher-with-security:integTestRunner --tests "org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchInputWithInsufficientPrivileges" -Dtests.seed=3AF36076A4C37A27 -Dtests.security.manager=true -Dtests.locale=nl-BQ -Dtests.timezone=Asia/Bishkek -Dcompiler.java=12 -Druntime.java=11 10:45:29 10:45:29 org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT > testIndexActionHasPermissions FAILED 10:45:29 java.lang.AssertionError: 10:45:29 Expected: is a value equal to or greater than <1> 10:45:29 but: <0> was less than <1> 10:45:29 at __randomizedtesting.SeedInfo.seed([3AF36076A4C37A27:1F46402E52F9591E]:0) 10:45:29 at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) 10:45:29 at org.junit.Assert.assertThat(Assert.java:956) 10:45:29 at org.junit.Assert.assertThat(Assert.java:923) 10:45:29 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.lambda$getWatchHistoryEntry$4(SmokeTestWatcherWithSecurityIT.java:329) 10:45:29 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:862) 10:45:29 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:836) 10:45:29 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.getWatchHistoryEntry(SmokeTestWatcherWithSecurityIT.java:306) 10:45:29 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testIndexActionHasPermissions(SmokeTestWatcherWithSecurityIT.java:259) 10:45:40 REPRODUCE WITH: ./gradlew :x-pack:qa:smoke-test-watcher-with-security:integTestRunner --tests "org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testIndexActionHasPermissions" -Dtests.seed=3AF36076A4C37A27 -Dtests.security.manager=true -Dtests.locale=nl-BQ -Dtests.timezone=Asia/Bishkek -Dcompiler.java=12 -Druntime.java=11 10:45:40 10:45:40 org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT > testIndexActionInsufficientPrivileges FAILED 10:45:40 java.lang.AssertionError: 10:45:40 Expected: is a value equal to or greater than <1> 10:45:40 but: <0> was less than <1> 10:45:40 at __randomizedtesting.SeedInfo.seed([3AF36076A4C37A27:204F346B78395B47]:0) 10:45:40 at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) 10:45:40 at org.junit.Assert.assertThat(Assert.java:956) 10:45:40 at org.junit.Assert.assertThat(Assert.java:923) 10:45:40 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.lambda$getWatchHistoryEntry$4(SmokeTestWatcherWithSecurityIT.java:329) 10:45:40 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:862) 10:45:40 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:836) 10:45:40 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.getWatchHistoryEntry(SmokeTestWatcherWithSecurityIT.java:306) 10:45:40 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testIndexActionInsufficientPrivileges(SmokeTestWatcherWithSecurityIT.java:282) 10:45:51 REPRODUCE WITH: ./gradlew :x-pack:qa:smoke-test-watcher-with-security:integTestRunner --tests "org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testIndexActionInsufficientPrivileges" -Dtests.seed=3AF36076A4C37A27 -Dtests.security.manager=true -Dtests.locale=nl-BQ -Dtests.timezone=Asia/Bishkek -Dcompiler.java=12 -Druntime.java=11 10:45:51 10:45:51 org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT > testSearchTransformHasPermissions FAILED 10:45:51 java.lang.AssertionError: 10:45:51 Expected: is a value equal to or greater than <1> 10:45:51 but: <0> was less than <1> 10:45:51 at __randomizedtesting.SeedInfo.seed([3AF36076A4C37A27:138387687DCC68CA]:0) 10:45:51 at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) 10:45:51 at org.junit.Assert.assertThat(Assert.java:956) 10:45:51 at org.junit.Assert.assertThat(Assert.java:923) 10:45:51 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.lambda$getWatchHistoryEntry$4(SmokeTestWatcherWithSecurityIT.java:329) 10:45:51 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:862) 10:45:51 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:836) 10:45:51 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.getWatchHistoryEntry(SmokeTestWatcherWithSecurityIT.java:306) 10:45:51 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchTransformHasPermissions(SmokeTestWatcherWithSecurityIT.java:210) 10:46:01 REPRODUCE WITH: ./gradlew :x-pack:qa:smoke-test-watcher-with-security:integTestRunner --tests "org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchTransformHasPermissions" -Dtests.seed=3AF36076A4C37A27 -Dtests.security.manager=true -Dtests.locale=nl-BQ -Dtests.timezone=Asia/Bishkek -Dcompiler.java=12 -Druntime.java=11 10:46:01 10:46:01 org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT > testSearchTransformInsufficientPermissions FAILED 10:46:01 java.lang.AssertionError: 10:46:01 Expected: is a value equal to or greater than <1> 10:46:01 but: <0> was less than <1> 10:46:01 at __randomizedtesting.SeedInfo.seed([3AF36076A4C37A27:A786648885C87DCA]:0) 10:46:01 at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) 10:46:01 at org.junit.Assert.assertThat(Assert.java:956) 10:46:01 at org.junit.Assert.assertThat(Assert.java:923) 10:46:01 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.lambda$getWatchHistoryEntry$4(SmokeTestWatcherWithSecurityIT.java:329) 10:46:01 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:862) 10:46:01 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:836) 10:46:01 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.getWatchHistoryEntry(SmokeTestWatcherWithSecurityIT.java:306) 10:46:01 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.getWatchHistoryEntry(SmokeTestWatcherWithSecurityIT.java:301) 10:46:01 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchTransformInsufficientPermissions(SmokeTestWatcherWithSecurityIT.java:239) 10:46:12 REPRODUCE WITH: ./gradlew :x-pack:qa:smoke-test-watcher-with-security:integTestRunner --tests "org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchTransformInsufficientPermissions" -Dtests.seed=3AF36076A4C37A27 -Dtests.security.manager=true -Dtests.locale=nl-BQ -Dtests.timezone=Asia/Bishkek -Dcompiler.java=12 -Druntime.java=11 10:46:12 10:46:12 org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT > testSearchInputHasPermissions FAILED 10:46:12 java.lang.AssertionError: 10:46:12 Expected: is a value equal to or greater than <1> 10:46:12 but: <0> was less than <1> 10:46:12 at __randomizedtesting.SeedInfo.seed([3AF36076A4C37A27:4822DFE1A9577852]:0) 10:46:12 at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) 10:46:12 at org.junit.Assert.assertThat(Assert.java:956) 10:46:12 at org.junit.Assert.assertThat(Assert.java:923) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.lambda$getWatchHistoryEntry$4(SmokeTestWatcherWithSecurityIT.java:329) 10:46:12 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:862) 10:46:12 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:836) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.getWatchHistoryEntry(SmokeTestWatcherWithSecurityIT.java:306) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchInputHasPermissions(SmokeTestWatcherWithSecurityIT.java:158) 10:46:12 REPRODUCE WITH: ./gradlew :x-pack:qa:smoke-test-watcher-with-security:integTestRunner --tests "org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchInputHasPermissions" -Dtests.seed=3AF36076A4C37A27 -Dtests.security.manager=true -Dtests.locale=nl-BQ -Dtests.timezone=Asia/Bishkek -Dcompiler.java=12 -Druntime.java=11 10:46:12 10:46:12 Suite: Test class org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT 10:46:12 1> [2019-06-06T21:45:13,833][INFO ][o.e.s.SmokeTestWatcherWithSecurityIT] [testSearchInputWithInsufficientPrivileges] before test 10:46:12 1> [2019-06-06T21:45:13,838][INFO ][o.e.s.SmokeTestWatcherWithSecurityIT] [testSearchInputWithInsufficientPrivileges] initializing REST clients against [http://[::1]:45978] 10:46:12 1> [2019-06-06T21:45:18,712][INFO ][o.e.s.SmokeTestWatcherWithSecurityIT] [testSearchInputWithInsufficientPrivileges] There are still tasks running after this test that might break subsequent tests [indices:data/write/bulk, indices:data/write/bulk[s]]. 10:46:12 1> [2019-06-06T21:45:18,713][INFO ][o.e.s.SmokeTestWatcherWithSecurityIT] [testSearchInputWithInsufficientPrivileges] after test 10:46:12 2> REPRODUCE WITH: ./gradlew :x-pack:qa:smoke-test-watcher-with-security:integTestRunner --tests "org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchInputWithInsufficientPrivileges" -Dtests.seed=3AF36076A4C37A27 -Dtests.security.manager=true -Dtests.locale=nl-BQ -Dtests.timezone=Asia/Bishkek -Dcompiler.java=12 -Druntime.java=11 10:46:12 2> org.elasticsearch.client.ResponseException: method [POST], host [http://[::1]:45978], URI [/.watcher-history-*/_search?rest_total_hits_as_int=true], status line [HTTP/1.1 503 Service Unavailable] 10:46:12 {"error":{"root_cause":[],"type":"search_phase_execution_exception","reason":"all shards failed","phase":"query","grouped":true,"failed_shards":[]},"status":503} 10:46:12 at __randomizedtesting.SeedInfo.seed([3AF36076A4C37A27:959B3C83AD12D929]:0) 10:46:12 at org.elasticsearch.client.RestClient.convertResponse(RestClient.java:253) 10:46:12 at org.elasticsearch.client.RestClient.performRequest(RestClient.java:231) 10:46:12 at org.elasticsearch.client.RestClient.performRequest(RestClient.java:205) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.lambda$getWatchHistoryEntry$4(SmokeTestWatcherWithSecurityIT.java:326) 10:46:12 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:850) 10:46:12 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:836) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.getWatchHistoryEntry(SmokeTestWatcherWithSecurityIT.java:306) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.getWatchHistoryEntry(SmokeTestWatcherWithSecurityIT.java:301) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchInputWithInsufficientPrivileges(SmokeTestWatcherWithSecurityIT.java:182) 10:46:12 1> [2019-06-06T21:45:18,748][INFO ][o.e.s.SmokeTestWatcherWithSecurityIT] [testIndexActionHasPermissions] before test 10:46:12 1> [2019-06-06T21:45:29,504][INFO ][o.e.s.SmokeTestWatcherWithSecurityIT] [testIndexActionHasPermissions] There are still tasks running after this test that might break subsequent tests [indices:data/write/bulk, indices:data/write/bulk[s]]. 10:46:12 1> [2019-06-06T21:45:29,505][INFO ][o.e.s.SmokeTestWatcherWithSecurityIT] [testIndexActionHasPermissions] after test 10:46:12 2> REPRODUCE WITH: ./gradlew :x-pack:qa:smoke-test-watcher-with-security:integTestRunner --tests "org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testIndexActionHasPermissions" -Dtests.seed=3AF36076A4C37A27 -Dtests.security.manager=true -Dtests.locale=nl-BQ -Dtests.timezone=Asia/Bishkek -Dcompiler.java=12 -Druntime.java=11 10:46:12 2> java.lang.AssertionError: 10:46:12 Expected: is a value equal to or greater than <1> 10:46:12 but: <0> was less than <1> 10:46:12 at __randomizedtesting.SeedInfo.seed([3AF36076A4C37A27:1F46402E52F9591E]:0) 10:46:12 at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) 10:46:12 at org.junit.Assert.assertThat(Assert.java:956) 10:46:12 at org.junit.Assert.assertThat(Assert.java:923) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.lambda$getWatchHistoryEntry$4(SmokeTestWatcherWithSecurityIT.java:329) 10:46:12 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:862) 10:46:12 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:836) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.getWatchHistoryEntry(SmokeTestWatcherWithSecurityIT.java:306) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testIndexActionHasPermissions(SmokeTestWatcherWithSecurityIT.java:259) 10:46:12 1> [2019-06-06T21:45:29,532][INFO ][o.e.s.SmokeTestWatcherWithSecurityIT] [testIndexActionInsufficientPrivileges] before test 10:46:12 1> [2019-06-06T21:45:40,309][INFO ][o.e.s.SmokeTestWatcherWithSecurityIT] [testIndexActionInsufficientPrivileges] There are still tasks running after this test that might break subsequent tests [indices:data/write/bulk, indices:data/write/bulk[s]]. 10:46:12 1> [2019-06-06T21:45:40,310][INFO ][o.e.s.SmokeTestWatcherWithSecurityIT] [testIndexActionInsufficientPrivileges] after test 10:46:12 2> REPRODUCE WITH: ./gradlew :x-pack:qa:smoke-test-watcher-with-security:integTestRunner --tests "org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testIndexActionInsufficientPrivileges" -Dtests.seed=3AF36076A4C37A27 -Dtests.security.manager=true -Dtests.locale=nl-BQ -Dtests.timezone=Asia/Bishkek -Dcompiler.java=12 -Druntime.java=11 10:46:12 2> java.lang.AssertionError: 10:46:12 Expected: is a value equal to or greater than <1> 10:46:12 but: <0> was less than <1> 10:46:12 at __randomizedtesting.SeedInfo.seed([3AF36076A4C37A27:204F346B78395B47]:0) 10:46:12 at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) 10:46:12 at org.junit.Assert.assertThat(Assert.java:956) 10:46:12 at org.junit.Assert.assertThat(Assert.java:923) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.lambda$getWatchHistoryEntry$4(SmokeTestWatcherWithSecurityIT.java:329) 10:46:12 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:862) 10:46:12 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:836) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.getWatchHistoryEntry(SmokeTestWatcherWithSecurityIT.java:306) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testIndexActionInsufficientPrivileges(SmokeTestWatcherWithSecurityIT.java:282) 10:46:12 1> [2019-06-06T21:45:40,331][INFO ][o.e.s.SmokeTestWatcherWithSecurityIT] [testSearchTransformHasPermissions] before test 10:46:12 1> [2019-06-06T21:45:51,016][INFO ][o.e.s.SmokeTestWatcherWithSecurityIT] [testSearchTransformHasPermissions] There are still tasks running after this test that might break subsequent tests [indices:data/write/bulk, indices:data/write/bulk[s]]. 10:46:12 1> [2019-06-06T21:45:51,017][INFO ][o.e.s.SmokeTestWatcherWithSecurityIT] [testSearchTransformHasPermissions] after test 10:46:12 2> REPRODUCE WITH: ./gradlew :x-pack:qa:smoke-test-watcher-with-security:integTestRunner --tests "org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchTransformHasPermissions" -Dtests.seed=3AF36076A4C37A27 -Dtests.security.manager=true -Dtests.locale=nl-BQ -Dtests.timezone=Asia/Bishkek -Dcompiler.java=12 -Druntime.java=11 10:46:12 2> java.lang.AssertionError: 10:46:12 Expected: is a value equal to or greater than <1> 10:46:12 but: <0> was less than <1> 10:46:12 at __randomizedtesting.SeedInfo.seed([3AF36076A4C37A27:138387687DCC68CA]:0) 10:46:12 at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) 10:46:12 at org.junit.Assert.assertThat(Assert.java:956) 10:46:12 at org.junit.Assert.assertThat(Assert.java:923) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.lambda$getWatchHistoryEntry$4(SmokeTestWatcherWithSecurityIT.java:329) 10:46:12 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:862) 10:46:12 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:836) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.getWatchHistoryEntry(SmokeTestWatcherWithSecurityIT.java:306) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchTransformHasPermissions(SmokeTestWatcherWithSecurityIT.java:210) 10:46:12 1> [2019-06-06T21:45:51,041][INFO ][o.e.s.SmokeTestWatcherWithSecurityIT] [testSearchTransformInsufficientPermissions] before test 10:46:12 1> [2019-06-06T21:46:01,747][INFO ][o.e.s.SmokeTestWatcherWithSecurityIT] [testSearchTransformInsufficientPermissions] There are still tasks running after this test that might break subsequent tests [indices:data/write/bulk, indices:data/write/bulk[s]]. 10:46:12 1> [2019-06-06T21:46:01,747][INFO ][o.e.s.SmokeTestWatcherWithSecurityIT] [testSearchTransformInsufficientPermissions] after test 10:46:12 2> REPRODUCE WITH: ./gradlew :x-pack:qa:smoke-test-watcher-with-security:integTestRunner --tests "org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchTransformInsufficientPermissions" -Dtests.seed=3AF36076A4C37A27 -Dtests.security.manager=true -Dtests.locale=nl-BQ -Dtests.timezone=Asia/Bishkek -Dcompiler.java=12 -Druntime.java=11 10:46:12 2> java.lang.AssertionError: 10:46:12 Expected: is a value equal to or greater than <1> 10:46:12 but: <0> was less than <1> 10:46:12 at __randomizedtesting.SeedInfo.seed([3AF36076A4C37A27:A786648885C87DCA]:0) 10:46:12 at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) 10:46:12 at org.junit.Assert.assertThat(Assert.java:956) 10:46:12 at org.junit.Assert.assertThat(Assert.java:923) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.lambda$getWatchHistoryEntry$4(SmokeTestWatcherWithSecurityIT.java:329) 10:46:12 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:862) 10:46:12 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:836) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.getWatchHistoryEntry(SmokeTestWatcherWithSecurityIT.java:306) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.getWatchHistoryEntry(SmokeTestWatcherWithSecurityIT.java:301) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchTransformInsufficientPermissions(SmokeTestWatcherWithSecurityIT.java:239) 10:46:12 1> [2019-06-06T21:46:01,768][INFO ][o.e.s.SmokeTestWatcherWithSecurityIT] [testSearchInputHasPermissions] before test 10:46:12 1> [2019-06-06T21:46:12,464][INFO ][o.e.s.SmokeTestWatcherWithSecurityIT] [testSearchInputHasPermissions] There are still tasks running after this test that might break subsequent tests [indices:data/write/bulk, indices:data/write/bulk[s]]. 10:46:12 1> [2019-06-06T21:46:12,465][INFO ][o.e.s.SmokeTestWatcherWithSecurityIT] [testSearchInputHasPermissions] after test 10:46:12 2> REPRODUCE WITH: ./gradlew :x-pack:qa:smoke-test-watcher-with-security:integTestRunner --tests "org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchInputHasPermissions" -Dtests.seed=3AF36076A4C37A27 -Dtests.security.manager=true -Dtests.locale=nl-BQ -Dtests.timezone=Asia/Bishkek -Dcompiler.java=12 -Druntime.java=11 10:46:12 2> java.lang.AssertionError: 10:46:12 Expected: is a value equal to or greater than <1> 10:46:12 but: <0> was less than <1> 10:46:12 at __randomizedtesting.SeedInfo.seed([3AF36076A4C37A27:4822DFE1A9577852]:0) 10:46:12 at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:18) 10:46:12 at org.junit.Assert.assertThat(Assert.java:956) 10:46:12 at org.junit.Assert.assertThat(Assert.java:923) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.lambda$getWatchHistoryEntry$4(SmokeTestWatcherWithSecurityIT.java:329) 10:46:12 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:862) 10:46:12 at org.elasticsearch.test.ESTestCase.assertBusy(ESTestCase.java:836) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.getWatchHistoryEntry(SmokeTestWatcherWithSecurityIT.java:306) 10:46:12 at org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchInputHasPermissions(SmokeTestWatcherWithSecurityIT.java:158) 10:46:12 2> NOTE: leaving temporary files on disk at: /var/lib/jenkins/workspace/elastic+elasticsearch+master+intake/x-pack/qa/smoke-test-watcher-with-security/build/testrun/integTestRunner/temp/org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT_3AF36076A4C37A27-001 10:46:12 2> NOTE: test params are: codec=Lucene80, sim=Asserting(org.apache.lucene.search.similarities.AssertingSimilarity@53309619), locale=nl-BQ, timezone=Asia/Bishkek 10:46:12 2> NOTE: Linux 3.10.0-957.12.2.el7.x86_64 amd64/Oracle Corporation 11.0.3 (64-bit)/cpus=16,threads=1,free=426557952,total=536870912 10:46:12 2> NOTE: All tests run in this JVM: [SmokeTestWatcherWithSecurityClientYamlTestSuiteIT, SmokeTestWatcherWithSecurityIT] 10:46:12 10:46:12 66 tests completed, 6 failed 10:46:12 10:46:12 Tests with failures: 10:46:12 - org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchInputWithInsufficientPrivileges 10:46:12 - org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testIndexActionHasPermissions 10:46:12 - org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testIndexActionInsufficientPrivileges 10:46:12 - org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchTransformHasPermissions 10:46:12 - org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchTransformInsufficientPermissions 10:46:12 - org.elasticsearch.smoketest.SmokeTestWatcherWithSecurityIT.testSearchInputHasPermissions Jenkins build: https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+intake/37 |
In https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+intake/110/console just one test failed, but it's the same as one of the failures in #42409 (comment) and failed with the exact same reason as the first failure in #42409 (comment). The failure is:
At the time this happened the corresponding error in the server side log was:
|
I'we been working on running the build with more parallelism enabled which has unfortunately caused more (I believe) timing related failures such as this one: https://scans.gradle.com/s/m44sa6oyftyue/tests/6ej7h6toy4af6-6g5rmtb4agtbo |
…history Catch exceptions and fail (which allows the assertBusy to retry) if an error happens from the search against .watcher-history. Related: elastic#42409 Related: elastic#39169
I spent some time today looking at these failures on the CI nodes with @atorok pending parallelism. I can see the box is working extremely hard and things are slower, but still could not find any relationship between load and these tests. I did find one issue : #43781 which I think will help with the majority of the problems for SmokeTestWatcherWithSecurityIT (non yaml tests). |
…43781) Retry if failures searching .watcher-history Catch exceptions and fail (which allows the assertBusy to retry) if an error happens from the search against .watcher-history. Related: elastic#42409 Related: elastic#39169
I'm also hopeful that #43888 will address the issue noted in https://scans.gradle.com/s/m44sa6oyftyue/tests/6ej7h6toy4af6-6g5rmtb4agtbo it may also be the cause for other non-reproducible failures too. |
Adding this here instead of opening a new issue: |
I also got |
I added #43988 (WatcherRestIT failure) to the top comment |
When Watcher is stopped and there are still outstanding watches running Watcher will report it self as stopped. In normal cases, this is not problematic. However, for integration tests Watcher is started and stopped between each test to help ensure a clean slate for each test. The tests are blocking only on the stopped state and make an implicit assumption that all watches are finished if the Watcher is stopped. This is an incorrect assumption since Stopped really means, "I will not accept any more watches". This can lead to un-predictable behavior in the tests such as message : "Watch is already queued in thread pool" and state: "not_executed_already_queued". This can also change the .watcher-history if watches linger between tests. This commit changes the semantics of a manual stopping watcher to now mean: "I will not accept any more watches AND all running watches are complete". There is now an intermediary step "Stopping" and callback to allow transition to a "Stopped" state when all Watches have completed. Additionally since this impacts how long the tests will block waiting for a "Stopped" state, the timeout has been increased. Related: #42409
When Watcher is stopped and there are still outstanding watches running Watcher will report it self as stopped. In normal cases, this is not problematic. However, for integration tests Watcher is started and stopped between each test to help ensure a clean slate for each test. The tests are blocking only on the stopped state and make an implicit assumption that all watches are finished if the Watcher is stopped. This is an incorrect assumption since Stopped really means, "I will not accept any more watches". This can lead to un-predictable behavior in the tests such as message : "Watch is already queued in thread pool" and state: "not_executed_already_queued". This can also change the .watcher-history if watches linger between tests. This commit changes the semantics of a manual stopping watcher to now mean: "I will not accept any more watches AND all running watches are complete". There is now an intermediary step "Stopping" and callback to allow transition to a "Stopped" state when all Watches have completed. Additionally since this impacts how long the tests will block waiting for a "Stopped" state, the timeout has been increased. Related: elastic#42409
When Watcher is stopped and there are still outstanding watches running Watcher will report it self as stopped. In normal cases, this is not problematic. However, for integration tests Watcher is started and stopped between each test to help ensure a clean slate for each test. The tests are blocking only on the stopped state and make an implicit assumption that all watches are finished if the Watcher is stopped. This is an incorrect assumption since Stopped really means, "I will not accept any more watches". This can lead to un-predictable behavior in the tests such as message : "Watch is already queued in thread pool" and state: "not_executed_already_queued". This can also change the .watcher-history if watches linger between tests. This commit changes the semantics of a manual stopping watcher to now mean: "I will not accept any more watches AND all running watches are complete". There is now an intermediary step "Stopping" and callback to allow transition to a "Stopped" state when all Watches have completed. Additionally since this impacts how long the tests will block waiting for a "Stopped" state, the timeout has been increased. Related: #42409
Closing this issue out since I believe that this meta issue is causing more noise then value and has outlived it's usefulness. We can address the test failures one by one. |
The number of Watcher test failures which have been muted is too high. This is a Meta issue to help track and resolve those test failures.
https://github.com/elastic/elasticsearch/issues?utf8=%E2%9C%93&q=is%3Aopen+label%3A%3ACore%2FFeatures%2FWatcher+label%3A%3Etest-failure
WatcherRestIT
Rolling Upgrade Tests
SmokeTestWatcherWithSecurityIT
[CI] SmokeTestWatcherWithSecurityIT.testSearchInputWithInsufficientPrivileges Failure #29893[CI] SmokeTestWatcherWithSecurityIT.testSearchInputWithInsufficientPrivileges Failure #29893fixed by address SmokeTestWatcherWithSecurityIT#testSearchInputWithInsufficientPrivileges #42764WatchBackwardsCompatibilityITFailure: [CI] WatchBackwardsCompatibilityIT failures #40841SingleNodeTests
BasicWatcherTests
SmokeTestWatcherTestSuiteIT
EmailAttachmentTests
ActivateWatchTests
Template to add to test failure issues if/when a test fails.
The tests will only be un-muted on master and if no failures after a certain period of time, will back port the un-mute.
The text was updated successfully, but these errors were encountered: