Is validate() method a must after recover from an outage of replica set
11 views
Skip to first unread message
algo...@gmail.com
unread,
May 24, 2016, 2:54:38 AM5/24/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
we use storage level snapshot to recover from an outage for replica set. The outage is something like a power failure of all the nodes in the replica set. After we recover from the outage by mount the snapshot as it is, we found the count() method against all the nodes in the replica set gave a wrong result. Only after we use validate() method, then the count() can give the correct number. So our questions are: 1. if validate() method a must after recover from an outage of replica set? 2. is there anything we need to do besides validate() method? 3. shall we leverage fsynclock() just before the snapshot is taken?