-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.2.0-rc0
-
Component/s: Security
-
Environment:Ubuntu 12.04 LTS
Linux yz-uc-core-a08 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
-
Linux
I have to use "while" for a connection auth, because some ratio to auth fail by using the same correct password.
My code:
while (!conn.auth("admin", write_mongos_primary.usr, write_mongos_primary.pwd, errmsg, false)) {
WriteLog(kLogWarning, "[PhoneImport] auth failed: %s.", errmsg.c_str());
}
App program logļ¼
WARNING: 07-21 01:34:35 [PhoneImport] auth failed: { errmsg: "exception: SyncClusterConnection::insert prepare failed: 192.168.130.14:9001:
192.168.130.15:9001:
{ errmsg: "need...", code: 8003, ok: 0.0 }.
config mongod 1(192.168.130.14:9001) log:
Sat Jul 21 01:34:25 [conn122] CMD fsync: sync:1 lock:0
Sat Jul 21 01:34:35 [conn2] end connection 192.168.130.14:11766 (96 connections now open)
Sat Jul 21 01:34:38 [conn54] CMD fsync: sync:1 lock:0
config mongod 2(192.168.130.15:9001) log:
Sat Jul 21 01:34:25 [conn122] CMD fsync: sync:1 lock:0
Sat Jul 21 01:34:25 [conn106] CMD fsync: sync:1 lock:0
Sat Jul 21 01:34:35 [conn2] end connection 192.168.130.14:4131 (96 connections now open)
Sat Jul 21 01:34:38 [conn54] CMD fsync: sync:1 lock:0
Sat Jul 21 01:34:38 [conn42] CMD fsync: sync:1 lock:0
mongos locate on 192.168.130.14