Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Don't allow interval to be set with 0 or negative values. #92

Conversation

tryantwit
Copy link
Contributor

Issue #, if available: Issue #37

Description of changes:
Added logic to check if interval is less than or equal to 0, throw IllegalArgumentException if so.
Added test case to check.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@dbbaughe dbbaughe left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

@ylwu-amzn ylwu-amzn left a comment

Choose a reason for hiding this comment

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

LGTM

@jinsoor-amzn jinsoor-amzn merged commit 0400ba6 into opendistro-for-elasticsearch:master Aug 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants