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

Add size-based condition to the index rollover API #27160

Merged
merged 3 commits into from
Nov 4, 2017

Conversation

dnhatn
Copy link
Member

@dnhatn dnhatn commented Oct 28, 2017

This is to add a max_size condition to the index rollover API. We use
a totalSizeInBytes from DocsStats to evaluate this condition.

Closes #27004

This is to add a `max_size` condition to the index rollover API. We use
a `totalSizeInBytes` from `DocsStats` to evaluate this condition.

Closes elastic#27004
Copy link
Contributor

@s1monw s1monw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM left a suggestion

* Checks if this condition is available in a specific version.
* This makes sure BWC when introducing a new condition which is not recognized by older versions.
*/
abstract boolean includedInVersion(Version version);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe just default it to true then you don't need to override it in the existing ones

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@s1monw, I made it abstract to make sure that when we add new conditions, we have to pay attention for BWC. Should I update as you suggested or keep as it is? WDYT?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed c33d4b3

@dnhatn dnhatn merged commit c7ce5a0 into elastic:master Nov 4, 2017
dnhatn added a commit to dnhatn/elasticsearch that referenced this pull request Nov 5, 2017
This is to add a max_size condition to the index rollover API. We use
a totalSizeInBytes from DocsStats to evaluate this condition.

Closes elastic#27004
@dnhatn dnhatn deleted the rollover-maxsize branch November 5, 2017 01:47
jasontedor added a commit to jasontedor/elasticsearch that referenced this pull request Nov 5, 2017
* master:
  Backport the size-based index rollver to v6.1.0
  Add size-based condition to the index rollover API (elastic#27160)
  Remove the single argument Environment constructor (elastic#27235)
martijnvg added a commit that referenced this pull request Nov 6, 2017
* 6.x:
  test: Break apart the multi type aspect of rolling upgrade tests,
  Upgrade to Jackson 2.8.10 (#27230)
  [Docs] Fix minor paragraph indentation error for multiple Indices params (#25535)
  Fix inconsistencies in the rest api specs for `tasks` (#27163)
  Adjust RestHighLevelClient method modifiers (#27238)
  Add more information on `_failed_to_convert_` exception (#27034)
  Remove ElasticsearchQueryCachingPolicy (#27190)
  Backport the size-based index rollver to v6.1.0
  Add size-based condition to the index rollover API (#27160)
  Remove the single argument Environment constructor (#27235)
  Fix RestGetAction name typo
@clintongormley clintongormley added :Data Management/Indices APIs APIs to create and manage indices and templates and removed :Rollover labels Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Indices APIs APIs to create and manage indices and templates >enhancement v6.1.0 v7.0.0-beta1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants