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

createCollection masserts on illegal namespaces

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 3.6.0-rc1
    • None
    • Storage
    • Fully Compatible
    • Storage 2017-10-23

    Description

      See repro. We should probably just uassert for this, to avoid filling the system log with unnecessary backtraces.

      Repro steps:
      1. start mongod
      2. start mongo shell
      3. issue shell commands:

      > use $bad
      switched to db $bad
      > db.createCollection("a")
      {
      	"operationTime" : Timestamp(0, 0),
      	"ok" : 0,
      	"errmsg" : "cannot do createCollection on namespace with a $ in it: $bad.a",
      	"code" : 17320,
      	"codeName" : "Location17320"
      }
      

      4. observe backtrace in mongod system log

      Expected behavior: step 4 should observe no backtrace.

      Attachments

        Activity

          People

            xiangyu.yao@mongodb.com Xiangyu Yao (Inactive)
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: