× Heads up!

Aqua Data Studio / nhilam

Follow
IDE for Relational Databases
×
rkshakya reported 2013-07-08T04:11:17Z  · last modified 2013-07-09T03:18:34Z

mongoshell connected to secondary allows insertion op


Priority Minor
Complexity Unknown
Component MongoShell
Version 14.0

Noticed on ADS 14-beta-55.

After connecting ADS to a 3 member replica set (with 1 primary and 2 secondaries) with slaveOK=true, I initiated the mongoshell and it displayed

1) rs1:SECONDARY> as the prompt indicating that I am connected to secondary.I further confirmed it by executing db.serverStatus().host that displayed ravi-laptop:27024 which is indeed a secondary. (Pls refer to attached replication_status.png)

2) But when I tried to insert into a collection connected to the secondary:

db.uta.insert({cat:"kids"})

it allowed the operation without complaining that I am not connected to the master(primary). (Pls refer to attached insert_on_sec.png)

If I repeat this same action on real mongo shell, it will not allow me to insert via secondary member and displays 'not master' message even if slaveOk is set to true. (Pls refer to real_shell.png)

Could you please investigate what's happening here? Thanks

3 attachments

Issue #9533

Closed
Invalid
Resolved 2013-07-08T20:41:33Z
 
 
Completion
No due date
No fixed build
No time estimate

About AquaClusters Privacy Policy Support Version - 19.0.2-4 AquaFold, Inc Copyright © 2007-2017