Skip to content
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

[BUG] Policy Managed Indices failed to get status of snapsho #12477

Open
justin-samuel opened this issue Feb 27, 2024 · 1 comment
Open

[BUG] Policy Managed Indices failed to get status of snapsho #12477

justin-samuel opened this issue Feb 27, 2024 · 1 comment
Labels
bug Something isn't working Search:Searchable Snapshots

Comments

@justin-samuel
Copy link

Describe the bug

Implemented an index lifecycle management policy to transition indices older than 3 days from a hot to a cold state, in alignment with our specified requirements. Upon entering the cold state, the policy is designed to trigger a snapshot creation process followed by the deletion of the indices. This process appears to be functioning as intended, with all created snapshots displaying a "success" status within the snapshot repository. However, an issue has been observed within the Policy Managed Indices interface. For all indices that are older and have been transitioned by this policy, the following error message is being generated:
{ "cause": "[<storage repo>:<snapshot> is missing", "message": "Failed to get status of snapshot [index=xxxxxxxx]" }

Upon conducting a manual search for the snapshot using its full name, (ie security-auditlog-2024.02.20_snapshot-2024.02.23-00:06:31.687), the search yields no results, indicating that the snapshot cannot be retrieved by its complete identifier. However, when the search criteria is truncated (ie security-auditlog-2024.02.20_snapshot-2024.02.23-00), excluding the precise timestamp, the snapshot becomes visible and can be successfully retrieved. This discrepancy suggests an issue with how snapshot identifiers are being indexed, queried, or both, potentially involving the handling or parsing of detailed timestamp information in the snapshot naming convention.

image
image

Related component

Indexing

To Reproduce

  1. Create Managed Policy and assign it to all indices
    { "id": "hot_to_cold_policy", "seqNo": 7151128, "primaryTerm": 58, "policy": { "policy_id": "hot_to_cold_policy", "last_updated_time": 1708659192697, "schema_version": 18, "error_notification": null, "default_state": "hot", "states": [ { "name": "hot", "actions": [], "transitions": [ { "state_name": "cold", "conditions": { "min_index_age": "1d" } } ] }, { "name": "cold", "actions": [ { "retry": { "count": 3, "backoff": "exponential", "delay": "1m" }, "snapshot": { "repository": "<Cold Storage repository>", "snapshot": "{{ctx.index}}" } }, { "retry": { "count": 3, "backoff": "exponential", "delay": "1m" }, "delete": {} } ], "transitions": [] } ], "ism_template": [ { "index_patterns": [ "*" ], "priority": 75, "last_updated_time": 1696882227220 } ] } }

  2. Once the cold state occurs, view each index information

Expected behavior

During the cold state, the information should be able to search successfully for the snapshot

Additional Details

Host/Environment (please complete the following information):

  • OS: ubuntu 22.04
  • Opensearch v2.9.0
@justin-samuel justin-samuel added bug Something isn't working untriaged labels Feb 27, 2024
@github-actions github-actions bot added the Indexing Indexing, Bulk Indexing and anything related to indexing label Feb 27, 2024
@peternied
Copy link
Member

[Triage - attendees 1 2 3 4 5]
@justin-samuel Thanks for filing this issue, we'd be happy to accept a pull request to address the bug.

@dhwanilpatel dhwanilpatel removed the Indexing Indexing, Bulk Indexing and anything related to indexing label Mar 6, 2024
@getsaurabh02 getsaurabh02 moved this from 🆕 New to Later (6 months plus) in Search Project Board Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Search:Searchable Snapshots
Projects
Status: Later (6 months plus)
Development

No branches or pull requests

3 participants