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

Cannot drop oplog.$main

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 3.0.6
    • Admin, Replication
    • None

    Description

      After converting master/slave replication to replica set (as described on https://docs.mongodb.org/manual/core/master-slave/#convert-a-master-slave-deployment-to-a-replica-set), I cannot drop local.oplog.$main collection:

      Error: drop failed:

      { "ok" : 0, "errmsg" : "can't drop collection with reserved $ character in name" }

      I need to drop it since
      1. it has allocated around 4 GB of space
      2. it is not needed (local.oplog.rs used instead)
      Renaming an oplog is not possible.

      Could you please advise on how to drop it?

      Thank you.

      Attachments

        Activity

          People

            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            markus714 Marek Jurco
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: