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

"Can't modify shard key's value field" exception in mongo shell fails silently in python

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.0.1, 2.1.1
    • Component/s: None
    • Environment:
      Ubuntu 11.10
      Mongodb version v2.0.2, pdfile version 4.5
      Sun Feb 26 00:27:33 git version: 514b122d308928517f5841888ceaa4246a7f18e3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I have python process which upserts into a sharded collection. I noticed the updates were not being reflected in the database and when I did the upsert in the mongo shell it printed out the error "Can't modify shard key's value field". This should raise an exception in the python client instead of failing silently.

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            yoshrote Josh Forman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: