show collecions timeout , bacause lastSeenConfigServerOpTime term in mongos is bigger than config server term

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      mongo version: 4.0.3

      how it happed?
      we can hook file write for config server,  oplog will not be written to the file.

      1. config server can raise term for election
      2. shard server exchange information with config server  and raise lastSeenConfigServerOpTime in memory
      3. mongos  exchange information with shard and raise lastSeenConfigServerOpTime in memory
      4. restart config server and unregister hook ,  the term for config server lesser than lastSeenConfigServerOpTime

        1. image-2022-06-01-18-54-49-851.png
          image-2022-06-01-18-54-49-851.png
          109 kB
        2. image-2022-06-01-18-59-14-101.png
          image-2022-06-01-18-59-14-101.png
          130 kB
        3. image-2022-06-01-19-00-19-278.png
          image-2022-06-01-19-00-19-278.png
          63 kB

            Assignee:
            Chris Kelly
            Reporter:
            kaipeng li
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: