-
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
FileRolesStoreTests#testReload fails #52955
Comments
Pinging @elastic/es-security (:Security/Authorization) |
Given that it does not repro and it sporadically fails, shall we keep the test around to potentially collect more info or shall I mute it already? |
Another failure in 7.x: https://gradle-enterprise.elastic.co/s/rssnr4evzsaww |
We suspect this might have only been broken for a few weeks and the issue from 9 days ago is something different, but @ywangd will followup and see where we are. |
Happened again in master ( |
This is a genuine issue with the test code. I can reliably reproduce it locally by inserting Lines 427 to 431 in 0097a86
The main reason of the failure is that the Now the test code does check whether the expected role is in the change-set (reported by FileWatcher) before asserting the existence of the Role (where the test failed). However, we do not differentiate the change-set between "deleted", "inserted" or "update". The test code really wanted an "updated" change-set, but it accepted a "deleted" one because role name is the same and it cannot tell the type of the change-set ( Line 435 in 0097a86
I will fix this with a PR to basically perform file move instead of write to avoid the race condition. |
FileRolesStoreTests#testReload failed three times in the last 10 days: one failure on 7.x , one on 7.6 and one on a PR branch . The failure does not reproduce with the same seed.
https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+7.x+EAR/458
The text was updated successfully, but these errors were encountered: