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

Fix SortsFunctionalSpecification.metaTextScore

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.12.1
    • Component/s: Test Coverage
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: