-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Integrity checks for read-only indices #16162
Comments
+1 - should probably integrate with the task management api |
When discussing whether the experimental tag should be removed from Instead like this issue suggested an api is better, because there is full control when a check index is performed. The api should mimic the checkindex tool as close as possible. Exposing its
The The check index api should be executed on a closed index. Making this api work on open indices is tricky, because the underlying Lucene index can change while check index is running. However I think we can make this api work on read only indices. The check index api should replace the @s1monw If I remember correctly you prefer a command line utility instead of an api for things like check index. However I think in this case check index I think an api is preferred? The current proposal doesn't modify shards and checking the integrity of an index via an api can be useful for curator like tools. Do you agree? |
Pinging @elastic/es-core-infra |
I was suggesting a disk utility if you repair the index by dropping corrupted segments. I think for your use-case and API is just fine. |
This has been open for quite a while, and hasn't had a lot of interest. For now I'm going to close this as something we aren't planning on implementing. We can re-open it later if needed. |
The checksum verification that we perform on merge or relocation has proved very useful to detect corruption but it is only triggered on merge. So static indices or segments that already reached the maximum segment size are never checked, even though they are as likely to get corrupted.
It would be nice to have an API, a command-line tool or even to figure out a way to run integrity checks automatically (anything that is easier than running CheckIndex on the shard directories)?
The text was updated successfully, but these errors were encountered: