summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/README.md
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2020-05-28 09:32:31 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-28 16:01:41 +0000
commit48169d0013d5a065fcc922f0de8e8347554a6136 (patch)
tree9da0cfe96098e4250112e2caaf6b7d4431589c5b /src/mongo/db/repl/README.md
parent02e3ec83c7e92adff03beda4def39bb33f1cd02d (diff)
downloadmongo-48169d0013d5a065fcc922f0de8e8347554a6136.tar.gz
SERVER-48216 Update architechture guide for quiesce mode
Diffstat (limited to 'src/mongo/db/repl/README.md')
-rw-r--r--src/mongo/db/repl/README.md5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/repl/README.md b/src/mongo/db/repl/README.md
index e1a689e65cb..9afd1b33166 100644
--- a/src/mongo/db/repl/README.md
+++ b/src/mongo/db/repl/README.md
@@ -221,7 +221,10 @@ The external state also manages and owns all of the replication threads.
The `TopologyCoordinator` is in charge of maintaining state about the topology of the cluster. On
significant changes (anything that affects the response to isMaster), the TopologyCoordinator updates
-its TopologyVersion. The [`isMaster`](https://github.com/mongodb/mongo/blob/r4.3.3/src/mongo/db/repl/replication_info.cpp#L258) command awaits changes in the TopologyVersion before returning.
+its TopologyVersion. The [`isMaster`](https://github.com/mongodb/mongo/blob/r4.3.3/src/mongo/db/repl/replication_info.cpp#L258) command awaits changes in the TopologyVersion before returning. On
+shutdown, if the server is a secondary, it enters quiesce mode: we increment the TopologyVersion and
+start responding to `isMaster` commands with a `ShutdownInProgress` error, so that clients cease
+routing new operations to the node.
The `TopologyCoordinator` is non-blocking and does a large amount of a node's decision making
surrounding replication. Most replication command requests and responses are filled in here.