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

Better error message for sharded $merge auth failures

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Atlas Streams

      $merge to a sharded cluster requires Atlas Admin privileges. But currently we throw a hard to understand error message like below. We should include text that says "Atlas Admin privileges are required to $merge to a sharded cluster."

      $merge to coll failed: not authorized on config to execute command { find: "collections", filter: { _id: "coll" }, $db: "config", lsid: { id: UUID("0459197c-2348-4ff7-9fae-62277edfb791") }, $clusterTime: { clusterTime: Timestamp(1730982624, 3), signature: { hash: BinData(0, C583609D409F1D563AF2E5BD48DC75C16B8B0B23), keyId: 7428242639620669462 } } }: generic server error 

            Assignee:
            Unassigned Unassigned
            Reporter:
            matthew.normyle@mongodb.com Matthew Normyle
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: