14. Which of the following is/are true of the term field in a replica set configuration document? Check all that apply:
题目选项
- A.represents an incrementing number used to distinguish revisions of the replica set configuration document.
- B.used to determine the maximum number of chunks for shard backed by the specific replica set covered by the configuration document.
- C.used with the version field to determine the freshest version of the replica set configuration document.
- D.gets incremented each time the primary steps up after winning an election.
答案置信度:中
正确答案:C、D
解析语言:中文
副本集配置文档里的 term 要与 version 一起比较(先比 term 再比 version)才能确定哪份配置更新,所以 C 对;每次主节点选举获胜、新主上台后 term 会随之递增,D 也对。A 描述的是 version 字段的定义(用来区分配置文档的修订号),B 说它决定分片的最大 chunk 数纯属编造。