Handle embedded "ns not found" errmsg from mongos

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 2.13.0, 3.0.0
    • Affects Version/s: None
    • Component/s: Error Handling
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      When running deleteIndexes command against a mongos on a non-existing collection, mongos returns:

      {
      	"raw" : {
      		"shard02/new-host-4.home:27021,new-host-4.home:27022,new-host-4.home:27023" : {
      			"ok" : 0,
      			"errmsg" : "ns not found"
      		}
      	},
      	"ok" : 0,
      	"errmsg" : "{ shard02/new-host-4.home:27021,new-host-4.home:27022,new-host-4.home:27023: \"ns not found\" }"
      }
      

      Currently the driver is unable to swallow that error, as it does against a mongod, which just returns:

      { "ok" : 0, "errmsg" : "ns not found" }
      

      because the driver is simply looking for an errmsg that equals "ns not found".

              Assignee:
              Jeffrey Yemin
              Reporter:
              Jeffrey Yemin
              None
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: