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

[Transform] NPE when updating a running transform with defer_validation set to true #104048

Closed
przemekwitek opened this issue Jan 8, 2024 · 1 comment · Fixed by #104051
Closed
Assignees
Labels
>bug :ml/Transform Transform Team:ML Meta label for the ML team

Comments

@przemekwitek
Copy link
Contributor

Elasticsearch Version

main

Installed Plugins

No response

Java Version

bundled

OS Version

MacOS

Problem Description

NPE is thrown when a running transform is updated with defer_validation flag set to true

Steps to Reproduce

  1. Create a continuous transform
  2. Start a transform
  3. Update the transform with defer_validation set to true

Observe the NPE error.

Logs (if relevant)

org.elasticsearch.xpack.transform.integration.TransformDestIndexIT > testTransformDestIndexCreatedDuringUpdate_DeferValidation FAILED
    org.elasticsearch.client.ResponseException: method [POST], host [http://127.0.0.1:65232], URI [/_transform/test_dest_index_on_update/_update?defer_validation=true], status line [HTTP/1.1 500 Internal Server Error]
    {"error":{"root_cause":[{"type":"null_pointer_exception","reason":"Cannot invoke \"java.util.Map.entrySet()\" because \"mappings\" is null"}],"type":"null_pointer_exception","reason":"Cannot invoke \"java.util.Map.entrySet()\" because \"mappings\" is null"},"status":500}
        at __randomizedtesting.SeedInfo.seed([2D31F6CA040A6817:5DF2F169FC7E8B02]:0)
        at app//org.elasticsearch.client.RestClient.convertResponse(RestClient.java:351)
        at app//org.elasticsearch.client.RestClient.performRequest(RestClient.java:317)
        at app//org.elasticsearch.client.RestClient.performRequest(RestClient.java:292)
        at app//org.elasticsearch.xpack.transform.integration.TransformRestTestCase.updateTransform(TransformRestTestCase.java:414)
        at app//org.elasticsearch.xpack.transform.integration.TransformDestIndexIT.testTransformDestIndexCreatedDuringUpdate_DeferValidation(TransformDestIndexIT.java:173)

@przemekwitek przemekwitek self-assigned this Jan 8, 2024
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/ml-core (Team:ML)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :ml/Transform Transform Team:ML Meta label for the ML team
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants