elastic/elasticsearch

Unable to unset index.blocks.read_only without index. prefix

Open

#48,325 创建于 2019年10月22日

在 GitHub 查看
 (6 评论) (0 反应) (0 负责人)Java (25,882 fork)batch import
:Core/Infra/Settings>bugTeam:Core/Infrahelp wantedtriaged

仓库指标

Star
 (76,700 star)
PR 合并指标
 (平均合并 2天) (30 天内合并 1,000 个 PR)

描述

Elasticsearch version (bin/elasticsearch --version): 7.3.2 / 7.4.0

Description of the problem including expected versus actual behavior:

After creating an index with blocks.read_only set to true, it was nearly impossible to unset the setting (in order to delete or close the index) until it was pointed out to try it with the index. prefix.

Steps to reproduce:

1. Create an index with blocks.read_only set to true

PUT /test
{
  "settings": {
    "blocks.read_only": true
  }
}

2. Attempt to unset it with blocks.read_only set to false or null (or attempt to close or delete the index without setting it, which by design it's blocked, but I am including these to help people find this issue).

PUT /test/_settings
{
  "blocks.read_only": null
}

3. Unset it with index.blocks.read_only set to false or null

PUT /test/_settings
{
  "index.blocks.read_only": null
}

贡献者指南