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

enableSharding must run before any insertions in search_collector_no_passthrough_stage.js

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: 8.1.0-rc0
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • ALL
    • CAR Team 2025-02-17
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The enableSharding attempts to assign a primary for a database that already exists and it's implicitly created by the insertions happening before.

      When the primary doesn't match, the test fails. 
      The call must be moved before any operation on the collection happens

            Assignee:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Reporter:
            enrico.golfieri@mongodb.com Enrico Golfieri
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: