-
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
cat/indices no longer shows indices currently being restored #39933
Comments
Pinging @elastic/es-distributed |
I think the bug here is that a restoring index is no longer appearing in |
Pinging @elastic/es-core-features |
@ywelsch I think you're right. The change introducing this bug hides indices for which the indices stats API returns empty. From what I understand, indices in the process of being restored also don't appear in the indices stats response. The simple fix, i.e. to include such indices from the cluster state, will expose names that the user is not authorized to see. |
I agree that that is confusing. If we want to address that, then it becomes a much larger discussion though. I wonder if we can instead use a |
After two recent changes (#38824 and #33888), the _cat/indices API no longer report information for active recovering indices and non-replicated closed indices. It also misreport replicated closed indices that are potentially not authorized for the user. This commit changes how the cat action works by first using the Get Settings API in order to resolve authorized indices. It then uses the Cluster State, Cluster Health and Indices Stats APIs to retrieve information about the indices. Closes #39933
After two recent changes (elastic#38824 and elastic#33888), the _cat/indices API no longer report information for active recovering indices and non-replicated closed indices. It also misreport replicated closed indices that are potentially not authorized for the user. This commit changes how the cat action works by first using the Get Settings API in order to resolve authorized indices. It then uses the Cluster State, Cluster Health and Indices Stats APIs to retrieve information about the indices. Closes elastic#39933
After two recent changes (#38824 and #33888), the _cat/indices API no longer report information for active recovering indices and non-replicated closed indices. It also misreport replicated closed indices that are potentially not authorized for the user. This commit changes how the cat action works by first using the Get Settings API in order to resolve authorized indices. It then uses the Cluster State, Cluster Health and Indices Stats APIs to retrieve information about the indices. Closes #39933
After two recent changes (elastic#38824 and elastic#33888), the _cat/indices API no longer report information for active recovering indices and non-replicated closed indices. It also misreport replicated closed indices that are potentially not authorized for the user. This commit changes how the cat action works by first using the Get Settings API in order to resolve authorized indices. It then uses the Cluster State, Cluster Health and Indices Stats APIs to retrieve information about the indices. Closes elastic#39933
After two recent changes (#38824 and #33888), the _cat/indices API no longer report information for active recovering indices and non-replicated closed indices. It also misreport replicated closed indices that are potentially not authorized for the user. This commit changes how the cat action works by first using the Get Settings API in order to resolve authorized indices. It then uses the Cluster State, Cluster Health and Indices Stats APIs to retrieve information about the indices. Closes #39933
Elasticsearch version (
bin/elasticsearch --version
):Version: 8.0.0-SNAPSHOT, Build: default/tar/4957cad/2019-03-11T15:48:39.514013Z, JVM: 1.8.0_151
Plugins installed: []
repository_gcs
JVM version (
java -version
):OS version (
uname -a
if on a Unix-like system):Description of the problem including expected versus actual behavior:
This is a usability nit.
Restoring a large snapshot may take some time. During this period you can no longer see the restoring indices listed in
GET _cat/indices
therefore you may think that the restore might not have been initiated.If you re-run the restore command, you get the error below saying that the index already exists.
This is a change from 6.x where the indices would be listed immediately by
GET _cat/indices
with their health as yellow. This was a convenient way to see that the restoration was in progress, especially for snapshots with multiple indices.Perhaps the index list behaviour could be returned to previous, or a more useful error message be displayed to explain that the restore is in progress.
Found in 3 node cluster.
Steps to reproduce:
Please include a minimal but complete recreation of the problem, including
(e.g.) index creation, mappings, settings, query etc. The easier you make for
us to reproduce it, the more likely that somebody will take the time to look at it.
POST _snapshot/my_repo/a_large_snapshot/_restore
-- restore a large snapshotGET _cat/indices
-- notice indices are not yet listedPOST _snapshot/my_repo/a_large_snapshot/_restore
-- re-run the restore again, before the first step has had a chance to finish.Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: