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

mongodump fails against hidden node with authentication enabled

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 4.2.0
    • 4.2.2, 100.0.0
    • mongodump
    • Amazon Linux

    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

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

              Dates

                Created:
                Updated:
                Resolved: