Bump Go driver from v2.5.0 to >v2.8.0 (to support retrying on server load shedding)

    • Type: Task
    • Resolution: Unresolved
    • Priority: Medium
    • None
    • Affects Version/s: None
    • Component/s: None
    • 2
    • Tools and Replicator
    • 3

      Problem

      Note: can block on the GODRIVER release ticket once that's made, but for now blocking on the bug fix ticket.

      mongo-tools currently pins to the go driver: v2.5.0. This version was released before MongoDB's IWM/backpressure client work landed. When MongoDB 9.0+ clusters begin returning SystemOverloadedError-labeled errors under load, mongodump, mongorestore, and mongoimport will treat them as generic unrecoverable errors and fail immediately, even though the operation is safely retryable.

      Go driver v2.6.0 first added IWM support (release notes).

      Solution & acceptance criteria

      • 2.6+ required for any of this to work. Seems like we may as well upgrade to 2.7 while we're at it, but we can discuss, others likely know better.
      • Bump go.mongodb.org/mongo-driver/v2 in go.mod to v2.7.0 or v2.8.0. Run go mod tidy, update go.sum. Update SBOM Lite / Augmented SBOM

      Impact

      Required for the tools to work on 9.0+ mongod's with the new SystemOverloadedError

            Assignee:
            Unassigned
            Reporter:
            Nick Weinberger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: