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] Unable to set/unset index blocks to read_only #871

Open
pardhukota-pk opened this issue Feb 22, 2024 · 1 comment
Open

[BUG] Unable to set/unset index blocks to read_only #871

pardhukota-pk opened this issue Feb 22, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@pardhukota-pk
Copy link

I am using opensearch-java-2.8.0 and trying to set the index block to read_only using the below code.

PutIndicesSettingsResponse response = elasticSearchIndicesClient.putSettings(b->b.index(index)
                .settings(s->s.blocksReadOnly(true)));

and then trying to unset it by passing false

I get the below error while unsetting it.

org.opensearch.client.opensearch._types.OpenSearchException: Request failed: [cluster_block_exception] index ["some_index"] blocked by: [FORBIDDEN/5/index read-only (api)];

Please let me know the correct way to set it and you can close this if this is not a issue.

@pardhukota-pk pardhukota-pk added bug Something isn't working untriaged labels Feb 22, 2024
@dblock dblock removed the untriaged label Apr 16, 2024
@dblock
Copy link
Member

dblock commented Apr 16, 2024

@pardhukota-pk Is this a client problem or server? can you reproduce the same issue with curl?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants