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

If I run shrink after index_settings my index settings are overwritten #1641

Closed
fidsamurai-crelio opened this issue Mar 9, 2022 · 2 comments

Comments

@fidsamurai-crelio
Copy link

For usage questions and help

Please create a topic at https://discuss.elastic.co/c/elasticsearch

Perhaps a topic there already has an answer for you!

To submit a bug or report an issue

Expected Behavior

After running index_settings to block writes to my old indices, my next action is to shrink the index which should create a new index as all the pre-shrink conditions are met.

Actual Behavior

However for some reason before shrinking the index the blocks.write setting reverts to false.

Steps to Reproduce the Problem

5:
  action: index_settings
  description: >-
    Set old indices to read-only
  options:
    disable_action: False #True
    index_settings:
      index:
        blocks:
          write: True
    continue_if_exception: False
    preserve_existing: False
    ignore_unavailable: True
  filters:
    - filtertype: alias
      aliases: <alias>
    - filtertype: age
      source: creation_date
      direction: older
      unit: days
      unit_count: 1
6:
  action: shrink
  description: >-
    Shrink old indices to 1 shard
  options:
    timeout_override: 300
    disable_action: False #True
    continue_if_exception: False
    shrink_node: DETERMINISTIC
    number_of_shards: 1
    number_of_replicas: 0
    shrink_prefix: inactive-
    shrink_suffix: null
    delete_after: False
    post_allocation:
      allocation_type: include
      key: box_type
      value: hot
    wait_for_active_shards: 1
    wait_for_completion: True
    wait_for_rebalance: False
    wait_interval: 30
    extra_settings:
      settings:
        index.blocks.write: true
  filters:
    - filtertype: alias
      aliases: <alias>
    - filtertype: age
      source: creation_date
      direction: younger
      unit: days
      unit_count: 2
    - filtertype: age
      source: creation_date
      direction: older
      unit: days
      unit_count: 1

Specifications

  • Version: Curator 5.8 ES 6.2
  • Platform: AWS EC2 Instance
  • Subsystem: Ubuntu 16.04

Context (Environment)

As ES 6.2 doesn't support ILM we're trying to use curator for ILM.

Detailed Description

@fidsamurai-crelio
Copy link
Author

@untergeek
Copy link
Member

The ability to copy settings was added in 6.4 via a params arg. This is probably too late for your use case, but it exists and is mentioned in PR #1379 which will be added at some point. Closing in lieu of that PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants