Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-2380

mongodump fails against hidden node with authentication enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 4.2.0
    • Fix Version/s: 4.2.2, 100.0.0
    • Component/s: mongodump
    • Labels:
    • Environment:
      Amazon Linux
    • Case:

      Description

      i just upgraded from 4.0.12 to 4.2.0 and my backup job failed last night.  I spent a few hours troubleshooting the issue and it appears mongodump can no longer backup data directly on a secondary like it used to.  If fails to allow listDatabases because it doesnt set rs.slaveOk() first.  For my use case, i have 4 replicas, 3 of which are used by our API and the 4th is hidden just to use for backing up and maybe the occasional long query.  I see that i can specify a read preference, but i need to ensure no impact to the non hidden members which are being queried constantly.  Can we have a parameter to set slaveOk?  I have temporarily downgraded just the hidden replica to 4.0.12 so backups can continue.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              david.golden David Golden
              Reporter:
              ryan@vivanda.com Ryan Kaltreider
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: