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

Fix Setting.timeValue() method #20696

Merged
merged 1 commit into from
Sep 30, 2016
Merged

Conversation

tlrx
Copy link
Member

@tlrx tlrx commented Sep 29, 2016

The Setting.timeValue() method uses TimeValue.toString() which can produce fractional time values. These fractional time values cannot be parsed again by the settings framework.

This commit fix a method that still use the .toString() method and replaces it with .getStringRep(). It also changes a second method so that it's not up to the caller to decide which stringify method to call.

closes #20662

@s1monw
Copy link
Contributor

s1monw commented Sep 29, 2016

LGTM thanks for fixing this

@s1monw
Copy link
Contributor

s1monw commented Sep 30, 2016

@tlrx can you push and backport?

The Setting.timeValue() method uses TimeValue.toString() which can produce fractional time values. These fractional time values cannot be parsed again by the settings framework.

This commit fix a method that still use the .toString() method and replaces it with .getStringRep(). It also changes a second method so that it's not up to the caller to decide which stringify method to call.

closes elastic#20662
@tlrx tlrx merged commit bb73472 into elastic:master Sep 30, 2016
tlrx added a commit that referenced this pull request Sep 30, 2016
The Setting.timeValue() method uses TimeValue.toString() which can produce fractional time values. These fractional time values cannot be parsed again by the settings framework.

This commit fix a method that still use the .toString() method and replaces it with .getStringRep(). It also changes a second method so that it's not up to the caller to decide which stringify method to call.

closes #20662

(cherry picked from commit bb73472)
tlrx added a commit that referenced this pull request Sep 30, 2016
The Setting.timeValue() method uses TimeValue.toString() which can produce fractional time values. These fractional time values cannot be parsed again by the settings framework.

This commit fix a method that still use the .toString() method and replaces it with .getStringRep(). It also changes a second method so that it's not up to the caller to decide which stringify method to call.

closes #20662

(cherry picked from commit bb73472)
@tlrx
Copy link
Member Author

tlrx commented Sep 30, 2016

@s1monw I just pushed and backported (from the train!). Thanks for the review.

@tlrx tlrx deleted the fix-time-value-setting branch October 3, 2016 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants