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

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Meryama Nadim
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: