Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-65272

Fix jscore tests to work with multiple mongos

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Replication
    • Repl 2022-05-16, Repl 2022-05-30, Repl 2022-06-13, Repl 2022-06-27, Repl 2022-07-11, Repl 2022-08-08, Repl 2022-08-22, Repl 2022-09-05, Repl 2022-09-19, Repl 2022-07-25

      shell_connection_string.js, bench_test2.js, and benchrun_pipeline_updates.js call db.getMongo().host which doesn't work if the test fixture is using multiple mongos. It fails with this error message:

      [js_test:shell_connection_strings] Error: invalid url [localhost:20255,localhost:20256] :
      [js_test:shell_connection_strings] @jstests/core/shell_connection_strings.js:8:16
      [js_test:shell_connection_strings] @jstests/core/shell_connection_strings.js:35:3
      [js_test:shell_connection_strings] failed to load: jstests/core/shell_connection_strings.js
      

      This is needed to enable these tests in ctc_multi_replicator_sharded_collections_jscore_passthrough (in the mongosync repo) since that passthrough suite uses 2 mongos

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            huayu.ouyang@mongodb.com Huayu Ouyang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: