-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Adding isSimulated methods to be used in simulate mapping validation work #108791
Conversation
Pinging @elastic/es-data-management (Team:Data Management) |
This builds on the simulate ingest work from #101409. |
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, I left one comment
@@ -45,13 +53,15 @@ public SimulateIndexResponse( | |||
long version, | |||
BytesReference source, | |||
XContentType sourceXContentType, | |||
List<String> pipelines | |||
List<String> pipelines, | |||
Exception exception |
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.
Perhaps annotate this with @Nullable
?
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.
Looks good to me
This PR lays the groundwork for being able to validate mappings in the simulate ingest API (see #106440 for the full draft). It adds
isSimulated
methods to BulkRequest, SimulateBulkRequest, and BulkShardRequest. It also adds anexception
field to SimulateIndexResponse that will be used to hold any mapping validation exceptions (in a future PR).