Open pardhukota-pk opened 7 months ago
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 Is this a client problem or server? can you reproduce the same issue with curl?
curl
I am using opensearch-java-2.8.0 and trying to set the index block to read_only using the below code.
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.