Skip to content

Commit

Permalink
fix: can not update number of replicas in a closed index
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosgz committed Jun 28, 2024
1 parent 52365cb commit 6830327
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/esse/index/indices.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@ def reset_index(suffix: index_suffix, optimize: true, import: true, reindex: fal
# @TODO: Reindex using the reindex API
end
if optimize && number_of_replicas != new_number_of_replicas || refresh_interval != new_refresh_interval
close(suffix: suffix)
update_settings(suffix: suffix)
self.open(suffix: suffix)
end
update_aliases(suffix: suffix)
existing.each { |s| delete_index!(**options, suffix: s) }
Expand Down

0 comments on commit 6830327

Please sign in to comment.