-
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
DedicatedClusterSnapshotRestoreIT#testRestoreShrinkIndex fails #38845
Comments
Pinging @elastic/es-distributed |
Logs from a recent failure: |
Yea, this seems to be it in part. But I'm also trying to understand why we fail to delete the index in the first place with a bunch of:
The error we get on delete is an access denied that is the result of the Lucene mock directory still (wrongfully?) thinking that some files that should be deleted are open. The issue looks somewhat similar to this one. I can certainly delete the files that can't be deleted according to the directory wrapper straight from the file system, so there doesn't seem to be any actual FD open for them. Looking into that now :) Update: seems like the race is expected during deletes and we should just handle it better ... on that. |
* We should treat a `null` return for the metadata as equal to an error and break out * Added the check at this level even though it required nested `throw`, because adding it further downstream would impact other functionality * Closes elastic#38845
The same thing happened in 7.x in https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+7.x+intake/100/console
The repro command is:
This reproduced locally for me on a CentOS 7 server:
I muted the test in 7.x in 6ea483a |
Fix incoming in #38891 :) |
The issue mentioned (elastic#38845) seems to have been closed with elastic#38891 so the test can be re-activated.
Possibly relates #38256, at least this is the same test that still seems to be failing in latest
master
(cacf81a).The actual issue seems to be here:
The trouble being, I think, that there's a race in which the index directory exists without any metadata, so we get a
null
here rather than an exception:elasticsearch/server/src/main/java/org/elasticsearch/indices/IndicesService.java
Line 876 in cacf81a
I think we should throw something there rather than passing
null
tobuildIndexSettings(metaData);
a few lines further down.The text was updated successfully, but these errors were encountered: