dbDao 百度贴吧:http://tieba.baidu.com/dbdao
MongoDB技术学习QQ群: 421431253
此题为单选题
Given a Replica Set with five data-bearing members , suppose the primary goes down with operations in its oplog that have been copied to only one secondary.
Assuming no other problem occurs, which of the following describes what is most likely to happen?
- The primary will rollback the operations once it recovers
- The secondary with the most current oplog will be elected primary
- Missing operations will need to be manually added
- The most current secondary will not rollback the operations following the election .
- Reads will be stale until the primary comes back up.
- The primary will rollback the operations once it recovers 是错误的因为 A rollback reverts write operations on a former primary when the member rejoins its replica set after a failover. A rollback is necessary only if the primary had accepted write operations that the secondaries had not successfully replicated before the primary stepped down.
If a higher-priority member catches up to within 10 seconds of the latest oplog entry of the current primary, the set holds an election in order to provide the higher-priority node a chance to become primary.
答案应为
- The most current secondary will not rollback the operations following the election .