Skip to content

[BUG] testNeuralQueryEnricherProcessor_whenNoModelIdPassed_statsEnabled_thenSuccess is failing intermittently #1599

@owaiskazi19

Description

@owaiskazi19

What is the bug?

Ref: #1597

Suite: Test class org.opensearch.neuralsearch.processor.NeuralQueryEnricherProcessorIT

  2> REPRODUCE WITH: ./gradlew ':integTest' --tests 'org.opensearch.neuralsearch.processor.NeuralQueryEnricherProcessorIT.testNeuralQueryEnricherProcessor_whenNoModelIdPassed_statsEnabled_thenSuccess' -Dtests.seed=A226CDD6F77E5157 -Dtests.security.manager=false -Dtests.locale=sa-IN -Dtests.timezone=America/Belem -Druntime.java=24

  2> org.opensearch.client.ResponseException: method [GET], host [https://localhost:9200/], URI [/my-nlp-index/_search?timeout=1000s&allow_partial_search_results=false&size=2], status line [HTTP/2.0 400 Bad Request]

    {"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"Model not ready yet. Please deploy the model first."}],"type":"illegal_argument_exception","reason":"Model not ready yet. Please deploy the model first."},"status":400}

        at __randomizedtesting.SeedInfo.seed([A226CDD6F77E5157:CE5031F5F41B230E]:0)

        at app//org.opensearch.client.RestClient.convertResponse(RestClient.java:501)

        at app//org.opensearch.client.RestClient.performRequest(RestClient.java:384)

        at app//org.opensearch.client.RestClient.performRequest(RestClient.java:359)

        at app//org.opensearch.neuralsearch.BaseNeuralSearchIT.search(BaseNeuralSearchIT.java:966)

        at app//org.opensearch.neuralsearch.BaseNeuralSearchIT.search(BaseNeuralSearchIT.java:800)

        at app//org.opensearch.neuralsearch.BaseNeuralSearchIT.search(BaseNeuralSearchIT.java:783)

        at app//org.opensearch.neuralsearch.BaseNeuralSearchIT.search(BaseNeuralSearchIT.java:771)

        at app//org.opensearch.neuralsearch.BaseNeuralSearchIT.search(BaseNeuralSearchIT.java:750)

        at app//org.opensearch.neuralsearch.BaseNeuralSearchIT.search(BaseNeuralSearchIT.java:731)

        at app//org.opensearch.neuralsearch.processor.NeuralQueryEnricherProcessorIT.testNeuralQueryEnricherProcessor_whenNoModelIdPassed_statsEnabled_thenSuccess(NeuralQueryEnricherProcessorIT.java:133)

How can one reproduce the bug?

Steps to reproduce the behavior.

What is the expected behavior?

A clear and concise description of what you expected to happen.

What is your host/environment?

Operating system, version.

Do you have any screenshots?

If applicable, add screenshots to help explain your problem.

Do you have any additional context?

Add any other context about the problem.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions