mongodb-erlang
mongodb-erlang copied to clipboard
Generic server terminating
Hi, when i use mongc:connect({rs, <<"...">>, [...]}, [...], [...]) connect to a mongodb cluster, i get a error like this,
** Generic server <0.70.0> terminating
** Last message in was {'EXIT',<0.69.0>,killed}
** When Server state == {state,rsSecondary, ....}
.......
** Reason for termination ==
** killed
do you have any suggestions for me, thanks very much
maybe it is killed because the connection is closed?
Can you please try with {ok, Connection} = mc_worker_api:connect ([{database, Database}]).
yes, it worked like you said, weird, even if this error occured, the data i want to write is wrote in the db.
@comtihon I think this one is related to #226 and might be able to be closed and folded into that one.
I suspect something is going on here with the same issues I've been diagnosing on the replicaset connections and mc_monitor
and ets
@liujp-arch if you are still around mind sharing details of what's in your hosts list, specifically:
- are the hostnames lists or binaries?
- do the hostnames and ports match identically to what the Mongo server reports in
rs.status()
?
@liujp-arch you might try this again now that #236 has merged into master
, which I believe has a good chance of fixing that for you.