Re: Replication test

From: Jeff Yemin <jeff.yemin@xxxxxxxxxxx>
To: "mongodb-user@xxxxxxxxxxxxxxxx" <mongodb-user@xxxxxxxxxxxxxxxx>
Date: Thu, 5 May 2016 10:24:33 -0400
Why ads?
Hi Adnan,

Please provide the stack trace of the exception so it's clear which
exception the driver is throwing.


Regards,
Jeff

On Thu, May 5, 2016 at 6:18 AM, Adnan Khurram <adnankhurram@xxxxxxxxx>
wrote:

HI Guys,
I am exploring the replication functionality in MongoDB, just wanted to
clarify a scenario.

I have a java program which is inserting values in the db constantly in a
three instance replica set, now if i do rs.stepDown() on the primary the
java program waits for a couple of seconds for the elections and then
continues inserting but if i know do the rs.stepDown() on the new primary,
my program just throws and exception and exits.

For the first primary it works after the election by itself whereas in
case of the second primary stepping down it throws and exception. Could
someone please explain why is it doing that whereas i thought it would
continue even in case of the second step down.

Kind Regards,


--
You received this message because you are subscribed to the Google Groups
"mongodb-user"
group.

For other MongoDB technical support options, see:
https://docs.mongodb.org/manual/support/
---
You received this message because you are subscribed to the Google Groups
"mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to mongodb-user+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to mongodb-user@xxxxxxxxxxxxxxxx.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit
https://groups.google.com/d/msgid/mongodb-user/c2aa38bb-eee2-4946-89e6-d34b7508fb43%40googlegroups.com
<https://groups.google.com/d/msgid/mongodb-user/c2aa38bb-eee2-4946-89e6-d34b7508fb43%40googlegroups.com?utm_medium=email&utm_source=footer>
.
For more options, visit https://groups.google.com/d/optout.


-- 
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.

For other MongoDB technical support options, see: https://docs.mongodb.org/manual/support/
--- 
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe@xxxxxxxxxxxxxxxx.
To post to this group, send email to mongodb-user@xxxxxxxxxxxxxxxx.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/CAE_jbCJWywsM2-bf%2B55-hTeTs_f3rCKpWTrAtVCXBy3pgxJprw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Why ads?