-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Accept more ingest simulate params as ints or strings #66197
Conversation
Pinging @elastic/es-core-features (Team:Core/Features) |
@elasticmachine test this please |
@elasticmachine ok to test |
@elasticmachine update branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you @gaobinlong for fixing this!
I'll get this merged and backported.
_version, _if_seq_no and _if_primary_term params in the simulate pipeline API cannot be parsed correctly when the value is integer orstring type. This PR fix the bug and modify the test method to test it. # Conflicts: # server/src/test/java/org/elasticsearch/action/ingest/SimulatePipelineRequestParsingTests.java
I found a problem during backport |
After #66197 we've lost ability to use longs for version, if_seq_no and if_primary_term (only ints would work). That slipped through because 1 test went missing after refactoring in #50131. This change fixes that with new ConfigurationUtils.readOptionalStringOrLongProperty method and and brings back the test.
Relates to #65992.
Seem to #23823.
_version
,_if_seq_no
and_if_primary_term
params in thesimulate pipeline
API cannot be parsed correctly when the value isinteger
orstring
type.This PR fix the bug and modify the test method to test it.