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

Disable failing $lookup test

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: 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?

      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.

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

              Created:
              Updated:
              Resolved: