-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.4.14
-
Component/s: Admin, Replication
-
Labels:None
-
Environment:Ubuntu 12.04
-
Linux
-
Our offsite backup process operates by stopping the MongoD processes on our Hidden Secondary hosts, then capturing their data by cloning their database folder and copying it offsite.
The restore process works by stopping the MongoD process, removing the existing data within the database folder, then cloning the offsite data back into the database folder.
On several occasions now we have had the restored MongoD process never get out of 'startup2' as it believes there is data still to be replicated.
We have followed the documented recommendations for stopping a replica host by issuing "db.adminCommand(
{shutdown : 1})" to the MongoD process instead of stopping the process through upstart.
The documentation for the shutdown command states that it will not run unless "a" secondary has caught up with the primary. If the wording matches the logic, I suspect that the shutdown command proceeds with stopping the Hidden Secondary MongoD host, even when it is behind, because "A" Secondary is up to date (i.e. the non-hidden secondary witihin the replicaset).