问答详情
源自:4-1 复制集主节点和从节点

为啥可以rs.stepDown(5)?

node024213(mongod-4.0.8)[PRIMARY:27017] test> rs.stepDown(5)

{

  "operationTime": Timestamp(1559285765, 1),

  "ok": 0,

  "errmsg": "stepdown period must be longer than secondaryCatchUpPeriodSecs",

  "code": 2,

  "codeName": "BadValue",

  "$clusterTime": {

    "clusterTime": Timestamp(1559285765, 1),

    "signature": {

      "hash": BinData(0, "+wx8ofa+0+/Mqxvh4GKzhpERdTA="),

      "keyId": NumberLong("6680315174974390274")

    }

  }

}


我这里执行报错,stepdown period must be longer than secondaryCatchUpPeriodSecs

我看了secondaryCatchUpPeriodSecs默认是10啊? 为什么写5可以?

提问者:FanDB 2019-05-31 15:07

个回答

  • UTHINK
    2020-09-22 17:28:48

    我也报这个错 估计是版本不一样吧