Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7811697
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:15:53+00:00 2026-06-02T04:15:53+00:00

Assume we have a replica set with 3 nodes(2 data and one arbiter) A->primary,

  • 0

Assume we have a replica set with 3 nodes(2 data and one arbiter)

A->primary, priority=2
B->secondary, priority=1, 10 seconds behind A
C->arbiter

Now A fails and B becomes primary. After some time A becomes online, does a rollback and after syncing it becomes primary again. Now we can apply roll backed data.

My question is what happen if priority of A is 1. after becoming online and doing a roll back, it will syncs with B. Now on which server we should apply roll backed data? since A is not primary anymore. Should we transfer roll backed data to B and do the operation?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T04:15:54+00:00Added an answer on June 2, 2026 at 4:15 am

    Because you can only do writes to a primary, the rolled back data should always be applied on the primary. Which in your case means you need to either move the data to server B, or just use mongorestore to talk to the new primary (with the -h argument). The mongorestore utility will most likely not allow the data to be applied to a secondary.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Assume i have struct node{ int val; node* left; }; Now, I have a
Assume you have the same data model as described here . Table: Item Columns:
Assume I have a List<SomeObject> a . Now also assume that I have another
Assume I have one matrix with two columns. Every column has thousands of values.
Assume you have five products, and all of them use one or more of
Assume I have a Class Foo which has many internal variables, only one constructor
Assume I have the following query: Update LPMBonusReport Set BoxID = (Select ContainerSerialNumber From
Assume I have two base classes, Container and Gizmo . Class Container has an
Assume I have a class foo, and wish to use a std::map to store
Assume I have created a compiled re: x = re.compile('^\d+$') Is there a way

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.