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

Fix mongobridge.js Test Timeout Due to Shard Authoritative Database Metadata Replication

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

      Problem:

      The test jstests/noPassthrough/mongobridge/mongobridge.js fails when the feature flag featureFlagShardAuthoritativeDbMetadata is enabled. This occurs because the test disrupts network replication (via mongobridgeafter database creation, which triggers authoritative metadata writes to config.shard.databases with majority write concern. The metadata replication times out under simulated network delays, causing the test to hang indefinitely.

      Solution:

      • Pre-create the database before applying network disruptions.
      • This ensures metadata replication completes while the network is healthy, isolating the test’s validation to user data operations under disruptions.

            Assignee:
            meryama.nadim@mongodb.com Meryama Nadim
            Reporter:
            meryama.nadim@mongodb.com Meryama Nadim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: