<section>
 <h1 class="contains-headerlink leafygreen-ui-41fr9s" weight="medium">
  Replica Set Member States
  <a class="headerlink leafygreen-ui-1kepx47" href="#replica-set-member-states" title="Permalink to this heading">
   <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
    <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
    </path>
    <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
    </path>
   </svg>
   <div class="css-1btu0w3 evvkmar0" id="replica-set-member-states">
   </div>
  </a>
 </h1>
 <p class="leafygreen-ui-1kp3ins">
  Each member of a replica set has a state.
 </p>
 <div class="leafygreen-ui-skkc39" tabindex="0">
  <table class="leafygreen-ui-hr8lsv">
   <colgroup>
    <col style="width:15%"/>
    <col style="width:25%"/>
    <col style="width:60%"/>
   </colgroup>
   <thead class="leafygreen-ui-a9ho40">
    <tr data-testid="leafygreen-ui-header-row">
     <th class="leafygreen-ui-1trtg6r" role="columnheader" scope="col">
      <div class="leafygreen-ui-ui0te9">
       <div>
        Number
       </div>
      </div>
     </th>
     <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
      <div class="leafygreen-ui-ui0te9">
       <div>
        Name
       </div>
      </div>
     </th>
     <th class="leafygreen-ui-13uteka" role="columnheader" scope="col">
      <div class="leafygreen-ui-ui0te9">
       <div>
        State Description
       </div>
      </div>
     </th>
    </tr>
   </thead>
   <tbody>
    <tr class="leafygreen-ui-15dvrnp">
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        0
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.STARTUP" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           STARTUP
          </code>
         </span>
        </a>
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        Not yet an active member of any set. All members start up in
this state. The
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
         <code class="leafygreen-ui-1l06pbn">
          mongod
         </code>
        </a>
        parses the
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/administration/replica-set-member-configuration/">
         replica set
configuration document
        </a>
        while in
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.STARTUP" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           STARTUP
          </code>
          .
         </span>
        </a>
       </div>
      </div>
     </td>
    </tr>
    <tr class="leafygreen-ui-15dvrnp">
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        1
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.PRIMARY" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           PRIMARY
          </code>
         </span>
        </a>
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        The member in state
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/replica-set-primary/#std-label-replica-set-primary">
         primary
        </a>
        is the only member that can accept write operations. Eligible to
vote.
       </div>
      </div>
     </td>
    </tr>
    <tr class="leafygreen-ui-15dvrnp">
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        2
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.SECONDARY" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           SECONDARY
          </code>
         </span>
        </a>
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        A member in state
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/replica-set-secondary/#std-label-replica-set-secondary-members-ref">
         secondary
        </a>
        is replicating the data store. Eligible to vote.
       </div>
      </div>
     </td>
    </tr>
    <tr class="leafygreen-ui-15dvrnp">
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        3
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.RECOVERING" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           RECOVERING
          </code>
         </span>
        </a>
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        Members either perform startup self-checks, or transition from
completing a
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/replica-set-rollbacks/#std-label-replica-set-rollbacks">
         rollback
        </a>
        or
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/resync-replica-set-member/#std-label-resync-replica-member">
         resync
        </a>
        . Data is not
available for reads from this member. Eligible to vote.
       </div>
      </div>
     </td>
    </tr>
    <tr class="leafygreen-ui-15dvrnp">
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        5
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.STARTUP2" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           STARTUP2
          </code>
         </span>
        </a>
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        The member is running an initial sync. Eligible to vote,
except when newly added to the replica set.
       </div>
      </div>
     </td>
    </tr>
    <tr class="leafygreen-ui-15dvrnp">
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        6
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.UNKNOWN" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           UNKNOWN
          </code>
         </span>
        </a>
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        The member's state, as seen from another member of the set, is not yet known.
       </div>
      </div>
     </td>
    </tr>
    <tr class="leafygreen-ui-15dvrnp">
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        7
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.ARBITER" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           ARBITER
          </code>
         </span>
        </a>
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/replica-set-members/#std-label-replica-set-arbiters">
         Arbiters
        </a>
        do not replicate data and exist solely to participate in elections. Eligible to vote.
       </div>
      </div>
     </td>
    </tr>
    <tr class="leafygreen-ui-15dvrnp">
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        8
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.DOWN" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           DOWN
          </code>
         </span>
        </a>
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        The member, as seen from another member of the set, is unreachable.
       </div>
      </div>
     </td>
    </tr>
    <tr class="leafygreen-ui-15dvrnp">
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        9
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.ROLLBACK" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           ROLLBACK
          </code>
         </span>
        </a>
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <p class="leafygreen-ui-1kp3ins">
         This member is actively performing a
         <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/replica-set-rollbacks/#std-label-replica-set-rollbacks">
          rollback
         </a>
         .  Eligible to
vote. Data is not available for reads from this member.
        </p>
        <p class="leafygreen-ui-1kp3ins">
         Starting in version 4.2, MongoDB kills all in-progress user
operations when a member enters the
         <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.ROLLBACK" target="_self">
          <span>
           <code class="leafygreen-ui-1l06pbn">
            ROLLBACK
           </code>
          </span>
         </a>
         state.
        </p>
       </div>
      </div>
     </td>
    </tr>
    <tr class="leafygreen-ui-15dvrnp">
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        10
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.REMOVED" target="_self">
         <span>
          <code class="leafygreen-ui-1l06pbn">
           REMOVED
          </code>
         </span>
        </a>
       </div>
      </div>
     </td>
     <td class="leafygreen-ui-1drjk7h">
      <div class="leafygreen-ui-1n4j8xf">
       <div>
        This member was once in a replica set but was subsequently removed.
       </div>
      </div>
     </td>
    </tr>
   </tbody>
  </table>
 </div>
 <section>
  <h2 class="contains-headerlink leafygreen-ui-19f71ei" weight="medium">
   States
   <a class="headerlink leafygreen-ui-1kepx47" href="#states" title="Permalink to this heading">
    <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
     <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
     </path>
     <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
     </path>
    </svg>
    <div class="css-1btu0w3 evvkmar0" id="states">
    </div>
   </a>
  </h2>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Core States
    <a class="headerlink leafygreen-ui-1kepx47" href="#core-states" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="core-states">
     </div>
    </a>
   </h3>
   <dl class="replstate">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      PRIMARY
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-replstate-replstate.PRIMARY" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-replstate-replstate.PRIMARY">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Members in
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.PRIMARY" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         PRIMARY
        </code>
       </span>
      </a>
      state accept write operations. A replica set has at most
one primary at a time.
      <a class="footnote-reference header-buffer" href="#footnote-edge-cases-2-primaries" id="ref-edge-cases-2-primaries-id1">
       [
       <!-- -->
       1
       <!-- -->
       ]
      </a>
      A
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.SECONDARY" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         SECONDARY
        </code>
       </span>
      </a>
      member becomes primary
after an
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/replica-set-elections/#std-label-replica-set-elections">
       election
      </a>
      . Members in the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.PRIMARY" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         PRIMARY
        </code>
       </span>
      </a>
      state are eligible to vote.
     </p>
    </dd>
   </dl>
   <dl class="replstate">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      SECONDARY
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-replstate-replstate.SECONDARY" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-replstate-replstate.SECONDARY">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Members in
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.SECONDARY" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         SECONDARY
        </code>
       </span>
      </a>
      state replicate the primary's data set
and can be configured to accept read operations. Secondaries are eligible to vote in
elections, and may be elected to the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.PRIMARY" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         PRIMARY
        </code>
       </span>
      </a>
      state if the
primary becomes unavailable.
     </p>
    </dd>
   </dl>
   <dl class="replstate">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      ARBITER
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-replstate-replstate.ARBITER" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-replstate-replstate.ARBITER">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Members in
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.ARBITER" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         ARBITER
        </code>
       </span>
      </a>
      state do not replicate data or accept write operations.
They are eligible to vote, and exist solely to break a tie during
elections. Replica sets should only have a member in the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.ARBITER" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         ARBITER
        </code>
       </span>
      </a>
      state
if the set would otherwise have an even number of voting members, and could suffer
from tied elections. There should only be at most one arbiter configured
in any replica set. For considerations when using an arbiter, see
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/replica-set-arbiter/">
       Replica Set Arbiter
       <!-- -->
       .
      </a>
     </p>
    </dd>
   </dl>
   <p class="leafygreen-ui-1kp3ins">
    See
    <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/replica-set-members/">
     Replica Set Members
    </a>
    for more information on core states.
   </p>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Other States
    <a class="headerlink leafygreen-ui-1kepx47" href="#other-states" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="other-states">
     </div>
    </a>
   </h3>
   <dl class="replstate">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      STARTUP
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-replstate-replstate.STARTUP" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-replstate-replstate.STARTUP">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Each member of a replica set starts up in
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.STARTUP" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         STARTUP
        </code>
       </span>
      </a>
      state.
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      then loads that member's replica set configuration,
and transitions the member's state to
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.STARTUP2" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         STARTUP2
        </code>
       </span>
      </a>
      or
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.ARBITER" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         ARBITER
        </code>
       </span>
      </a>
      . Members in
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.STARTUP" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         STARTUP
        </code>
       </span>
      </a>
      are not eligible to vote, as they are not yet a recognized member of any replica set.
     </p>
    </dd>
   </dl>
   <dl class="replstate">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      STARTUP2
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-replstate-replstate.STARTUP2" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-replstate-replstate.STARTUP2">
      </div>
     </a>
    </dt>
    <dd>
     <div>
      <p>
       <em>
        Changed
        <!-- -->
        in version
        <!-- -->
        5.0
       </em>
       .
      </p>
     </div>
     <p class="leafygreen-ui-1kp3ins">
      Each data-bearing member of a replica set enters the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.STARTUP2" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         STARTUP2
        </code>
       </span>
      </a>
      state as soon as
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/program/mongod/#mongodb-binary-bin.mongod">
       <code class="leafygreen-ui-1l06pbn">
        mongod
       </code>
      </a>
      finishes
loading that member's configuration.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      The member then decides whether or not to undertake an initial sync.
If a member begins an initial sync, the member remains in
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.STARTUP2" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         STARTUP2
        </code>
       </span>
      </a>
      until all data is copied and all indexes are
built. Afterwards, the member transitions to
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.RECOVERING" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         RECOVERING
        </code>
        .
       </span>
      </a>
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Newly-added members in
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.STARTUP2" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         STARTUP2
        </code>
       </span>
      </a>
      are not eligible to vote and
cannot be elected during the initial sync process. Prior to MongoDB 5.0,
members in
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.STARTUP2" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         STARTUP2
        </code>
       </span>
      </a>
      were eligible to vote.
     </p>
    </dd>
   </dl>
   <dl class="replstate">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      RECOVERING
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-replstate-replstate.RECOVERING" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-replstate-replstate.RECOVERING">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      A member of a replica set enters
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.RECOVERING" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         RECOVERING
        </code>
       </span>
      </a>
      state when
it is not ready to accept reads. The
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.RECOVERING" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         RECOVERING
        </code>
       </span>
      </a>
      state
can occur during normal operation, and doesn't necessarily reflect
an error condition.  Members in the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.RECOVERING" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         RECOVERING
        </code>
       </span>
      </a>
      state
are eligible to vote in elections, but are not eligible to enter the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.PRIMARY" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         PRIMARY
        </code>
       </span>
      </a>
      state.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      A member transitions from
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.RECOVERING" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         RECOVERING
        </code>
       </span>
      </a>
      to
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.SECONDARY" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         SECONDARY
        </code>
       </span>
      </a>
      after replicating enough data to guarantee a consistent view of the data for
client reads.  The only difference between
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.RECOVERING" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         RECOVERING
        </code>
       </span>
      </a>
      and
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.SECONDARY" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         SECONDARY
        </code>
       </span>
      </a>
      states is that
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.RECOVERING" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         RECOVERING
        </code>
       </span>
      </a>
      prohibits client reads and
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.SECONDARY" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         SECONDARY
        </code>
       </span>
      </a>
      permits them.
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.SECONDARY" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         SECONDARY
        </code>
       </span>
      </a>
      state does not guarantee anything about the
staleness of the data with respect to the primary.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Due to overload, a
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-secondary">
       secondary
      </a>
      may fall far enough behind the
other members of the replica set such that it may need to
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/tutorial/resync-replica-set-member/">
       resync
      </a>
      with the
rest of the set. When this happens, the member enters the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.RECOVERING" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         RECOVERING
        </code>
       </span>
      </a>
      state and requires manual intervention.
     </p>
    </dd>
   </dl>
   <dl class="replstate">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      ROLLBACK
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-replstate-replstate.ROLLBACK" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-replstate-replstate.ROLLBACK">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Whenever the replica set replaces a
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-primary">
       primary
      </a>
      in an
election, the old primary may contain documents
that did not replicate to the
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-secondary">
       secondary
      </a>
      members. In this case, the old primary member reverts those writes. During
      <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/replica-set-rollbacks/#std-label-replica-set-rollbacks">
       rollback
      </a>
      , the member will have
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.ROLLBACK" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         ROLLBACK
        </code>
       </span>
      </a>
      state. Members in the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.ROLLBACK" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         ROLLBACK
        </code>
       </span>
      </a>
      state
are eligible to vote in elections.
     </p>
     <p class="leafygreen-ui-1kp3ins">
      Starting in version 4.2, MongoDB kills all in-progress user
operations when a member enters the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.ROLLBACK" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         ROLLBACK
        </code>
       </span>
      </a>
      state.
     </p>
    </dd>
   </dl>
  </section>
  <section>
   <h3 class="contains-headerlink leafygreen-ui-15ajumo" weight="medium">
    Error States
    <a class="headerlink leafygreen-ui-1kepx47" href="#error-states" title="Permalink to this heading">
     <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
      <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
      </path>
      <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
      </path>
     </svg>
     <div class="css-1btu0w3 evvkmar0" id="error-states">
     </div>
    </a>
   </h3>
   <p class="leafygreen-ui-1kp3ins">
    Members in any error state can't vote.
   </p>
   <dl class="replstate">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      UNKNOWN
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-replstate-replstate.UNKNOWN" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-replstate-replstate.UNKNOWN">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Members that have never communicated status information to the replica
set are in the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.UNKNOWN" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         UNKNOWN
        </code>
       </span>
      </a>
      state.
     </p>
    </dd>
   </dl>
   <dl class="replstate">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      DOWN
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-replstate-replstate.DOWN" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-replstate-replstate.DOWN">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Members that lose their connection to the replica set are seen as
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.DOWN" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         DOWN
        </code>
       </span>
      </a>
      by the remaining members of the set.
     </p>
    </dd>
   </dl>
   <dl class="replstate">
    <dt>
     <code class="leafygreen-ui-1l06pbn">
      REMOVED
     </code>
     <a class="headerlink leafygreen-ui-1kepx47" href="#mongodb-replstate-replstate.REMOVED" title="Permalink to this definition">
      <svg aria-label="Link Icon" class="leafygreen-ui-a30zj9" fill="none" height="12" role="img" viewbox="0 0 16 16" width="12" xmlns="http://www.w3.org/2000/svg">
       <path d="M6.039 9.953a3.596 3.596 0 0 1-.327-.38l1.45-1.445a1.553 1.553 0 0 0 2.496.423l2.885-2.87a1.57 1.57 0 0 0 .01-2.213 1.553 1.553 0 0 0-2.203-.01l-.379.377A.995.995 0 0 1 8.56 3.83a1.005 1.005 0 0 1 .006-1.418l.38-.377a3.542 3.542 0 0 1 5.024.023 3.58 3.58 0 0 1-.022 5.047l-2.884 2.871a3.542 3.542 0 0 1-5.025-.022Z" fill="currentColor">
       </path>
       <path d="M9.961 6.047c.12.12.228.248.327.38l-1.45 1.445a1.553 1.553 0 0 0-2.496-.423l-2.885 2.87a1.57 1.57 0 0 0-.01 2.213 1.553 1.553 0 0 0 2.203.01l.379-.377a.995.995 0 0 1 1.411.006 1.005 1.005 0 0 1-.006 1.418l-.38.377a3.542 3.542 0 0 1-5.024-.023 3.58 3.58 0 0 1 .022-5.047l2.884-2.871a3.542 3.542 0 0 1 5.025.022Z" fill="currentColor">
       </path>
      </svg>
      <div class="css-1btu0w3 evvkmar0" id="mongodb-replstate-replstate.REMOVED">
      </div>
     </a>
    </dt>
    <dd>
     <p class="leafygreen-ui-1kp3ins">
      Members that are removed from the replica set enter the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.REMOVED" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         REMOVED
        </code>
       </span>
      </a>
      state.
When members enter the
      <a class="lg-ui-0001 leafygreen-ui-fgcsv5" href="#mongodb-replstate-replstate.REMOVED" target="_self">
       <span>
        <code class="leafygreen-ui-1l06pbn">
         REMOVED
        </code>
       </span>
      </a>
      state, the logs will
mark this event with a
      <code class="leafygreen-ui-1l06pbn">
       replSet REMOVED
      </code>
      message entry.
     </p>
    </dd>
   </dl>
   <table class="header-buffer leafygreen-ui-rbqgrl" frame="void" id="footnote-edge-cases-2-primaries" rules="none">
    <colgroup>
     <col/>
    </colgroup>
    <tbody valign="top">
     <tr>
      <td class="leafygreen-ui-17r2xs0">
       [
       <a href="#ref-edge-cases-2-primaries-id1">
        1
       </a>
       ]
      </td>
      <td class="leafygreen-ui-17r2xs0">
       <!-- -->
       In
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/read-preference-use-cases/#std-label-edge-cases">
        some circumstances
       </a>
       , two nodes in a replica set
may
       <em>
        transiently
       </em>
       believe that they are the primary, but at most, one
of them will be able to complete writes with
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/write-concern/#mongodb-writeconcern-writeconcern.-majority-">
        <code class="leafygreen-ui-1l06pbn">
         { w:
"majority" }
        </code>
       </a>
       write concern. The node that can complete
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/write-concern/#mongodb-writeconcern-writeconcern.-majority-">
        <code class="leafygreen-ui-1l06pbn">
         { w: "majority" }
        </code>
       </a>
       writes is the current
primary, and the other node is a former primary that has not yet
recognized its demotion, typically due to a
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/reference/glossary/#std-term-network-partition">
        network partition
       </a>
       .
When this occurs, clients that connect to the former primary may
observe stale data despite having requested read preference
       <a class="leafygreen-ui-tqgtui" href="/docs/manual/core/read-preference/#mongodb-readmode-primary">
        <code class="leafygreen-ui-1l06pbn">
         primary
        </code>
       </a>
       , and new writes to the former primary will
eventually roll back.
      </td>
     </tr>
    </tbody>
   </table>
  </section>
 </section>
</section>
