Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-301

Replicaset w/auth warnings too verbose when not auth'd against local/admin db

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 2.5.1
    • Affects Version/s: 2.5
    • Component/s: Cluster Management
    • Labels:
      None

      The is too verbose. It should not log every time this comes up.

      This seems to only be important in checking the replset name to make sure it is the name expected; in this case I think this msg should be moved to "info" level, or only printed once.

      In fact, this should just get the setName from isMaster and there won't be an auth problem at all (until we need to check something more):

      test:PRIMARY> db.runCommand("isMaster")
      {
      "setName" : "test",
      "ismaster" : true,
      "secondary" : false,
      "hosts" : [
      "stump:2003",
      "stump:2002",
      "stump:2001"
      ],
      "maxBsonObjectSize" : 16777216,
      "ok" : 1
      }

            Assignee:
            scotthernandez Scott Hernandez (Inactive)
            Reporter:
            scotthernandez Scott Hernandez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: