-
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
[CI] TransformInternalIndexIT.testUpdateDeletesOldTransformConfig #69057
Comments
Pinging @elastic/ml-core (Team:ML) |
This seems to be a weakness in When teardown is run, an index is initializing, so the delete call does not include it: This message shows the shard initialization:
but this message is after the test is already deleting indices:
|
initializing are not missed for deletion. fixes elastic#69057
Another failure: https://gradle-enterprise.elastic.co/s/pvyzesawuecto |
Another failure (7.12 branch): https://gradle-enterprise.elastic.co/s/sthnt7j7vleza |
7.x failure: https://gradle-enterprise.elastic.co/s/y7g4tjnrvekuw |
Looks like this still fails with same error in: https://gradle-enterprise.elastic.co/s/pysgbxwlswsqq
|
I have an idea for what this is. In the REST tests we wait for pending tasks before deleting indices: Line 207 in 26eef89
One of the reasons we had to add that was because of the way an async side effect of deleting an ML job is to write a notification to the notifications index, and that could end up creating the index after it had been deleted by the end-of-test cleanup. I expect the same is true of updating a transform. If so what's happening is that So when I moved |
Yes, it's in: Line 331 in 9d68193
|
Fixes an internal cluster test that was migrated from being a REST test by the system indices project. The REST test framework waits for pending tasks between tests whereas the internal cluster test framework does not. The particular test that was migrated requires this functionality, as updating a transform triggers an async side effect: writing an audit message. This PR does not add the wait for pending tasks step to all internal cluster tests. Clearly it is not required for most, and could slow down tests that don't require it. The new method can be called from elsewhere or moved up the class hierarchy in the future if it is needed elsewhere in the future. Closes #69057
Build scan: https://gradle-enterprise.elastic.co/s/qvjg4l7qfqdxq
Repro line:
Reproduces locally?: no
Applicable branches:
7.12
Failure history:
Failure excerpt:
The text was updated successfully, but these errors were encountered: