Skip to content

Failure in test {yaml=painless/30_search/Exception on negative score} #35904

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

Closed
iverase opened this issue Nov 26, 2018 · 2 comments
Closed

Failure in test {yaml=painless/30_search/Exception on negative score} #35904

iverase opened this issue Nov 26, 2018 · 2 comments
Labels
:Search Relevance/Ranking Scoring, rescoring, rank evaluation. Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch >test-failure Triaged test failures from CI

Comments

@iverase
Copy link
Contributor

iverase commented Nov 26, 2018

This test failed in:

https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+multijob-unix-compatibility/os=debian/79/console

The error is:

java.lang.AssertionError: Failure at [painless/30_search:463]: expected [400] status code but api [search] returned [200 OK] [{"took":39,"timed_out":false,"_shards":{"total":2,"successful":1,"skipped":0,"failed":1,"failures":[{"shard":0,"index":"test","node":"NFi9eDrdQ5WQvhylFyC61w","reason":{"type":"illegal_argument_exception","reason":"script score function must not produce negative scores, but got: [-9.0]"}}]},"hits":{"total":0,"max_score":null,"hits":[]}}]
	at __randomizedtesting.SeedInfo.seed([A614BD8726AD3F08:2E40825D885152F0]:0)
	at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.executeSection(ESClientYamlSuiteTestCase.java:407)
	at org.elasticsearch.test.rest.yaml.ESClientYamlSuiteTestCase.test(ESClientYamlSuiteTestCase.java:384)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

The REPRO command is:

REPRODUCE WITH: ./gradlew :modules:lang-painless:integTestRunner \
  -Dtests.seed=A614BD8726AD3F08 \
  -Dtests.class=org.elasticsearch.painless.LangPainlessClientYamlTestSuiteIT \
  -Dtests.method="test {yaml=painless/30_search/Exception on negative score}" \
  -Dtests.security.manager=true \
  -Dtests.locale=mk-MK \
  -Dtests.timezone=America/Campo_Grande \
  -Dcompiler.java=11 \
  -Druntime.java=8

reproduces locally.

@iverase iverase added :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >test-failure Triaged test failures from CI labels Nov 26, 2018
@jimczi jimczi added :Search Relevance/Ranking Scoring, rescoring, rank evaluation. and removed :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache labels Nov 26, 2018
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-search

@mayya-sharipova
Copy link
Contributor

Jim has fixed the error in #35909

@javanna javanna added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Search Relevance/Ranking Scoring, rescoring, rank evaluation. Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch >test-failure Triaged test failures from CI
Projects
None yet
Development

No branches or pull requests

5 participants