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

$mul on a numeric type results in inaccurate error message on FCV 3.6

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc0
    • Affects Version/s: 3.5.11
    • Component/s: None
    • Fully Compatible
    • ALL
    • Hide
      db.fuzzer.insert({ a:1, b: NumberLong(-9223372036854776000) })
      db.fuzzer.update({a:1}, {$mul: {b: NumberLong(2)}})
      
      Show
      db.fuzzer.insert({ a:1, b: NumberLong(-9223372036854776000) }) db.fuzzer.update({a:1}, {$mul: {b: NumberLong(2)}})
    • Query 2017-10-02

      After setting FCV to 3.6, the response received from the repro is as follows:

      WriteResult({
      	"nMatched" : 0,
      	"nUpserted" : 0,
      	"nModified" : 0,
      	"writeError" : {
      		"code" : 12,
      		"errmsg" : "Don't know how to handle unexpected SafeNum type"
      	}
      })
      

      The message given is vague and likely should not be reflected externally.

            Assignee:
            justin.seyster@mongodb.com Justin Seyster
            Reporter:
            kimberly.hou Kimberly Hou
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: