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

pymongo 3.1 doesn't raise DocumentTooLarge anymore

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.1
    • Affects Version/s: 3.1
    • Component/s: None

      Instead it raises AutoReconnect: connection closed. It's a regression from the 3.0 driver.

      I think this is confusing and should be fixed.

      Traceback I have now:

      Traceback (most recent call last):
        File "/var/lib/jenkins/jobs/xxx/workspace/src/aae_core/celerybackend.py", line 36, in store_result
          super(StorageErrorMixin, self).store_result(task_id, result, status, traceback, request, **kwargs)
        File "/var/lib/jenkins/env/lib/python2.7/site-packages/celery/backends/base.py", line 257, in store_result
          request=request, **kwargs)
        File "/var/lib/jenkins/env/lib/python2.7/site-packages/celery/backends/mongodb.py", line 155, in _store_result
          self.collection.save(meta)
        File "/var/lib/jenkins/env/lib/python2.7/site-packages/pymongo/collection.py", line 1992, in save
          check_keys, False, manipulate, write_concern)
        File "/var/lib/jenkins/env/lib/python2.7/site-packages/pymongo/collection.py", line 619, in _update
          codec_options=self.codec_options).copy()
        File "/var/lib/jenkins/env/lib/python2.7/site-packages/pymongo/pool.py", line 206, in command
          self._raise_connection_failure(error)
        File "/var/lib/jenkins/env/lib/python2.7/site-packages/pymongo/pool.py", line 333, in _raise_connection_failure
          raise error
      AutoReconnect: connection closed
      
      

            Assignee:
            bernie@mongodb.com Bernie Hackett
            Reporter:
            ionelmc Ionel Cristian M?rie?
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: