Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-667

Fix java-shell tests for latest server alpha

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.11.0
    • Affects Version/s: None
    • Component/s: Java Shell
    • None
    • Iteration Z
    • Not Needed

      https://evergreen.mongodb.com/task/mongosh_linux_test_mlatest_n14_cbf806edaa8f000490cc2d4adcff606edfbfa416_21_04_04_04_05_13

       [2021/04/04 04:20:09.536] com.mongodb.mongosh.CollectionTest > testCreateIndex FAILED
       [2021/04/04 04:20:09.536]     org.junit.ComparisonFailure: expected:<...Was": 2, "ok": 1 }
       [2021/04/04 04:20:09.536]     c[ategory_1_v_1
       [2021/04/04 04:20:09.536]     { "category": 10, "v": 5 }]> but was:<...Was": 2, "ok": 1 }
       [2021/04/04 04:20:09.536]     c[om.mongodb.MongoCommandException: Command failed with error 67 (CannotCreateIndex): 'Error in specification { key: { category: 1, v: 1 }, name: "category_1_v_1", ns: "admin.coll", weights: { category: 10, v: 5 } } :: caused by :: Invalid index specification { key: { category: 1, v: 1 }, name: "category_1_v_1", ns: "admin.coll", weights: { category: 10, v: 5 } }; the field 'weights' can only be specified with text indexes' on server %mongohostport%. The full response is {"ok": 0.0, "errmsg": "Error in specification { key: { category: 1, v: 1 }, name: \"category_1_v_1\", ns: \"admin.coll\", weights: { category: 10, v: 5 } } :: caused by :: Invalid index specification { key: { category: 1, v: 1 }, name: \"category_1_v_1\", ns: \"admin.coll\", weights: { category: 10, v: 5 } }; the field 'weights' can only be specified with text indexes", "code": 67, "codeName": "CannotCreateIndex"}
       [2021/04/04 04:20:09.536]     java.lang.IndexOutOfBoundsException: Index: 1, Size: 1]>
      

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: