Can not initiate a replicaset with newly started mongodb with heap1 storage engine because it already contains data

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.7.8
    • Affects Version/s: 2.7.6
    • Component/s: Storage
    • None
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When I do the following:

      cd mongodb-linux-x86_64-2.7.6/bin
      ./mongod --port 27017 --storageEngine heap1 --replSet testing --fork --logpath=/tmp/heap1-1.log
      ./mongod --port 27018 --storageEngine heap1 --replSet testing --fork --logpath=/tmp/heap1-2.log
      mongo --port 27017
      rs.initiate( { _id: 'testing', members: [ { _id: 0, host: 'whisky:27017' }, { _id: 1, host: 'whisky:27018' } ] } );
      

      I get the following error:

      {
      	"ok" : 0,
      	"errmsg" : "member whisky:27018 has data already, cannot initiate set.  All members except initiator must be empty.",
      	"code" : 13311
      }
      

      for some reason, it thinks that I already have data. There is indeed an empty ```admin``` database.

              Assignee:
              Unassigned
              Reporter:
              Derick Rethans
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: