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] Rollovering aliases should support remote snapshot index #16419

Closed
kkewwei opened this issue Oct 22, 2024 · 1 comment · Fixed by #16483
Closed

[BUG] Rollovering aliases should support remote snapshot index #16419

kkewwei opened this issue Oct 22, 2024 · 1 comment · Fixed by #16483
Labels
bug Something isn't working Search:Searchable Snapshots

Comments

@kkewwei
Copy link
Contributor

kkewwei commented Oct 22, 2024

Describe the bug

Same as #11226, we use alias to rollover the index, and restore the index as a searchable snapshot index, the restored searchable snapshot index is read-only, and share the same alias with the rollover index. But rollover operation will check the indices using the alias, and is blocked by METADATA_WRITE,

[FORBIDDEN/13/remote index is read-only];index [remote-index1-000006] blocked by: [FORBIDDEN/13/remote index is read-only];index [remote-index1-000001] blocked by: [FORBIDDEN/13/remote index is read-only];index [remote-index1-000002] blocked by: [FORBIDDEN/13/remote index is read-only];

Related component

Search:Searchable Snapshots

To Reproduce

  1. create index:
PUT nginxlogs-000001/_settings
{
    "index": {
        "blocks.read_only":"true"

    }
}
  1. rollover
    POST nginxlogs/_rollover

  2. set the first index read-only

PUT nginxlogs-000001/_settings
{
    "index": {
        "blocks.read_only":"true"
    }
}
  1. rollover and throw exception.
POST nginxlogs/_rollover

index [nginxlogs-000001] blocked by: [FORBIDDEN/5/index read-only (api)]

Expected behavior

rollover is ok

Additional Details

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@andrross
Copy link
Member

Thanks @kkewwei. This makes sense to me. Any interest in implementing this fix?

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
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants