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

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

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

      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 Unassigned
            Reporter:
            derick Derick Rethans
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: