Please help me to sort out the issue am facing last one month .
We have set a mongo Replica with 3 host (host1, host2, host3).
We have using java methods to insert and update collections .
We facing problem : when a mongo (host1) which is primary in replica and
our java project which is in host1 tried to insert a row in collection
using java . We got following error. But if my project in host1 and mongo
connection to host2, it insert successfully.