Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3571

Fix SortsFunctionalSpecification.metaTextScore

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.12.1
    • Affects Version/s: None
    • Component/s: Test Coverage
    • None

      SortsFunctionalSpecification.metaTextScore has started failing on latest server builds.

      Need to investigate why and either fix the test or report a server bug.

      FAILURE: Condition failed with Exception:
      
      find(metaTextScore('score'), new Document('score', new Document('$meta', 'textScore')))*.containsKey('score')
      |    |                       |                     |
      |    |                       |                     [$meta:textScore]
      |    |                       [score:[$meta:textScore]]
      |    [score:[$meta:BsonString{value='textScore'}]]
      com.mongodb.MongoQueryException: Query failed with error code 40218 and error message 'query requires text score metadata, but it is not available' on server localhost:27017
       (org.spockframework.runtime.ConditionFailedWithExceptionError)
      Condition failed with Exception:
      
      find(metaTextScore('score'), new Document('score', new Document('$meta', 'textScore')))*.containsKey('score')
      |    |                       |                     |
      |    |                       |                     [$meta:textScore]
      |    |                       [score:[$meta:textScore]]
      |    [score:[$meta:BsonString{value='textScore'}]]
      com.mongodb.MongoQueryException: Query failed with error code 40218 and error message 'query requires text score metadata, but it is not available' on server localhost:27017
      
      	at com.mongodb.client.model.SortsFunctionalSpecification.metaTextScore(SortsFunctionalSpecification.groovy:69)
      Caused by: com.mongodb.MongoQueryException: Query failed with error code 40218 and error message 'query requires text score metadata, but it is not available' on server localhost:27017
      

      First failure at https://evergreen.mongodb.com/version/mongo_java_driver_b28be53f50c362adecd15a857febc3d70fcd11e3

            Assignee:
            Unassigned Unassigned
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: