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

stale_mongos_and_restarted_shards_agree_on_shard_version.js: bug when insert fails in transaction

    • 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 2024-10-28, CAR Team 2024-11-11
    • 0

      stale_mongos_and_restarted_shards_agree_on_shard_version.js has a test-only bug where if the insert at line 135 fails, then later abortTransaction at line 139 will throw, crashing the test. This is due to the fact that the insert() at line 135 doesn't throw on error, but instead returns, so the error is ignored, and later a somewhat complex interaction ends up with the unhandled exception (see comment in BF-35416).

            Assignee:
            aitor.esteve@mongodb.com Aitor Esteve Alvarado
            Reporter:
            aitor.esteve@mongodb.com Aitor Esteve Alvarado
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: