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

Adding isSimulated methods to be used in simulate mapping validation work #108791

Merged
merged 4 commits into from
May 20, 2024

Conversation

masseyke
Copy link
Member

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 an exception field to SimulateIndexResponse that will be used to hold any mapping validation exceptions (in a future PR).

@masseyke masseyke added >non-issue :Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP v8.15.0 labels May 17, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Data Management Meta label for data/management team label May 17, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@masseyke
Copy link
Member Author

This builds on the simulate ingest work from #101409.

Copy link
Member

@dakrone dakrone left a 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
Copy link
Member

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?

Copy link
Contributor

@parkertimmins parkertimmins left a 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

@masseyke masseyke merged commit 93fdfe5 into elastic:main May 20, 2024
15 checks passed
@masseyke masseyke deleted the adding-isSimulated-methods branch May 20, 2024 21:12
jedrazb pushed a commit to jedrazb/elasticsearch that referenced this pull request May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Data Management/Ingest Node Execution or management of Ingest Pipelines including GeoIP >non-issue Team:Data Management Meta label for data/management team v8.15.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants