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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.6.0-rc0
    • 3.5.11
    • 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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: