Skip to content

[CI] FunctionScoreQueryBuilderTests testCacheability failure #55331

@cbuescher

Description

@cbuescher

Failure on master: https://gradle-enterprise.elastic.co/s/dmut5fjhfhzh2

This reproduces locally with

./gradlew ':server:test' --tests "org.elasticsearch.index.query.functionscore.FunctionScoreQueryBuilderTests.testCacheability" \
  -Dtests.seed=E852D4E6B71A6977 \
  -Dtests.security.manager=true \
  -Dtests.locale=it \
  -Dtests.timezone=SST \
  -Dcompiler.java=14

Error:

java.lang.AssertionError: query should not be cacheable: {
  "function_score" : {
    "query" : {
      "term" : {
        "BCGkj" : {
          "value" : true,
          "boost" : 0.2
        }
      }
    },
    "functions" : [
      {
        "filter" : {
          "ids" : {
            "values" : [
              "IqbhWHRudT",
              "CY",
              "xsJoX",
              "I",
              "vYm",
              "QhctenW",
              "IrQzUnqvn",
              "m",
              "dpvkCJK"
            ],
            "boost" : 0.6666667,
            "_name" : "ohSBWZ160"
          }
        },
        "weight" : 0.92822886,
        "script_score" : {
          "script" : {
            "source" : "1",
            "lang" : "mockscript"
          }
        }
      }
    ],
    "score_mode" : "first",
    "max_boost" : 0.6829204,
    "boost" : 1.0,
    "_name" : "f161"
  }
} expected:<false> but was:<true>
	at __randomizedtesting.SeedInfo.seed([E852D4E6B71A6977:C8DBA06ABD824177]:0)
	at org.junit.Assert.fail(Assert.java:88)
	at org.junit.Assert.failNotEquals(Assert.java:834)
	at org.junit.Assert.assertEquals(Assert.java:118)
	at org.elasticsearch.index.query.functionscore.FunctionScoreQueryBuilderTests.testCacheability(FunctionScoreQueryBuilderTests.java:832)

Metadata

Metadata

Assignees

Labels

:Search/SearchSearch-related issues that do not fall into other categories>test-failureTriaged test failures from CI

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions