Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-158

Please add code and err string to assertion messages

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.10
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      In [7]: g.put('testing 1 2')
      ...
      OperationFailure: command SON([('filemd5', ObjectId('4c755c247b98305a8b000000')), ('root', u'fs')]) failed: db assertion failure

      In [10]: conn.test.error()
      Out[10]:

      {u'code': 13092, u'err': u'GridFS chunks collection can only be sharded on files_id', u'n': 0, u'ok': 1.0}

      Having the error code and string would make this easier to debug.

            Assignee:
            Unassigned Unassigned
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: