Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-6549

The correct password may auth fail occasionally.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.2.0-rc1
    • Affects Version/s: 2.2.0-rc0
    • Component/s: Security
    • Labels:
    • 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:

      { errmsg: "need to login", ok: 0.0 }

      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

        1. testAuth.cc
          0.7 kB
        2. cleanlog.rar
          16 kB
        3. auth.log
          4 kB

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            xjtyfq NOVALUE yangfenqiang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: