Closed jtibshirani closed 4 days ago
Pinging @elastic/es-data-management (Team:Data Management)
I think this one is probably beyond me, but putting this here before the history is gone. These lines in the log look suspicious:
[2022-04-14T12:53:42,472][INFO ][o.e.x.w.WatcherService ] [node_s3] reloading watcher, reason [new local watcher shard allocation ids], cancelled [0] queued tasks
[2022-04-14T12:53:42,485][INFO ][o.e.x.w.WatcherService ] [node_s2] paused watch execution, reason [no local watcher shards found], cancelled [2] queued tasks
When I run it locally that doesn't happen. If I hook in the debugger and slow things way down I can get it to log that first line (new local watcher shard allocation ids
). But I haven't been able to cause any tasks to be canceled (2 in that 2nd log line). So I'm wondering if this is a timing bug? The build server happened to be running really slowly and 2 of the 7 watcher history records were dropped?
Those last two might be different -- rather than tasks being cancelled, they have exactly twice as many watcher history records as we'd expect:
java.lang.AssertionError: Count is 10 hits but 5 was expected. Total shards: 1 Successful shards: 1 & 0 shard failures:
I don't see any clues in the logs about why, unfortunately.
This issue has been closed because it has been open for too long with no activity.
Any muted tests that were associated with this issue have been unmuted.
If the tests begin failing again, a new issue will be opened, and they may be muted again.
Build scan: https://gradle-enterprise.elastic.co/s/3t354zq4wraic/tests/:x-pack:plugin:watcher:internalClusterTest/org.elasticsearch.xpack.watcher.test.integration.BootStrapTests/testTriggeredWatchLoading
Reproduction line:
./gradlew ':x-pack:plugin:watcher:internalClusterTest' --tests "org.elasticsearch.xpack.watcher.test.integration.BootStrapTests.testTriggeredWatchLoading" -Dtests.seed=CCA17557F9EF4FAF -Dtests.locale=he-IL -Dtests.timezone=Canada/Central -Druntime.java=17
Applicable branches: master
Reproduces locally?: No
Failure history: https://gradle-enterprise.elastic.co/scans/tests?tests.container=org.elasticsearch.xpack.watcher.test.integration.BootStrapTests&tests.test=testTriggeredWatchLoading
Failure excerpt: