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

Disable failing $lookup test

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Unknown Unknown
    • None
    • None
    • Aggregation, Test Coverage
    • None
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

    Description

      The test com.mongodb.client.model.AggregatesTest#testDocumentsLookup is failing against the mainline server build (post 7.0 release). The pipeline is:

      [
        {'$lookup': {'from': 'ignored', 'pipeline': [{'$documents': [{'a': 5}]}], 'as': 'added'}}
      ]
      

      and the server error is:

      {
        "ok": 0.0, 
        "errmsg": "'$documents' can only be run with {aggregate: 1}", 
         "code": 73,
         "codeName": "InvalidNamespace"}
      

      Checking with query execution team whether this change is intentional, but meanwhile we should at least disable the test.

      Attachments

        Activity

          People

            maxim.katcharov@mongodb.com Maxim Katcharov
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: