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

Inconsistent Exception handling for dropIndexes on mongod versus mongos

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Command Operations
    • None

      This line will throw an Exception if the driver is talking to a mongos, but not if the driver is talking to a mongod.

      For a mongos, the message that the driver is calling .equals on looks like:

      "errmsg" : "{ red_0/cailinmac:28000,cailinmac:28001,cailinmac:28002: \"ns not found\" }"
      

      whereas for a mongod the message looks like:

      "errmsg" : "ns not found"
      

      This causes an Exception to be raised in the mongos case but not the mongod case.

            Assignee:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Reporter:
            cailin.nelson@mongodb.com Cailin Nelson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: