Uploaded image for project: 'Motor'
  1. Motor
  2. MOTOR-146

Test Failure - Various synchro tests with MongoDB 3.4 replica set

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

      These failures only happen with a MongoDB 3.4 replica set.

       [2017/03/31 18:59:15.834] ======================================================================
       [2017/03/31 18:59:15.835] ERROR: test_create_index (test.test_collection.TestCollection)
       [2017/03/31 18:59:15.835] ----------------------------------------------------------------------
       [2017/03/31 18:59:15.835] Traceback (most recent call last):
       [2017/03/31 18:59:15.835]   File "/data/mci/a5834e50443aad0a7e942f156a86f8ca/src/.tox/synchro/tmp/mongo-python-driver/test/test_collection.py", line 254, in test_create_index
       [2017/03/31 18:59:15.835]     with self.write_concern_collection() as coll:
       [2017/03/31 18:59:15.835]   File "/opt/python/2.7/lib/python2.7/contextlib.py", line 17, in __enter__
       [2017/03/31 18:59:15.835]     return self.gen.next()
       [2017/03/31 18:59:15.835]   File "/data/mci/a5834e50443aad0a7e942f156a86f8ca/src/.tox/synchro/tmp/mongo-python-driver/test/test_collection.py", line 131, in write_concern_collection
       [2017/03/31 18:59:15.835]     write_concern=WriteConcern(w=len(client_context.nodes) + 1))
       [2017/03/31 18:59:15.835] TypeError: __init__() got an unexpected keyword argument 'write_concern'
       [2017/03/31 18:59:15.835] ======================================================================
       [2017/03/31 18:59:15.835] ERROR: test_create_indexes (test.test_collection.TestCollection)
       [2017/03/31 18:59:15.835] ----------------------------------------------------------------------
       [2017/03/31 18:59:15.835] Traceback (most recent call last):
       [2017/03/31 18:59:15.835]   File "/data/mci/a5834e50443aad0a7e942f156a86f8ca/src/.tox/synchro/tmp/mongo-python-driver/test/__init__.py", line 324, in wrap
       [2017/03/31 18:59:15.835]     return f(*args, **kwargs)
       [2017/03/31 18:59:15.835]   File "/data/mci/a5834e50443aad0a7e942f156a86f8ca/src/.tox/synchro/tmp/mongo-python-driver/test/test_collection.py", line 211, in test_create_indexes
       [2017/03/31 18:59:15.835]     with self.write_concern_collection() as coll:
       [2017/03/31 18:59:15.835]   File "/opt/python/2.7/lib/python2.7/contextlib.py", line 17, in __enter__
       [2017/03/31 18:59:15.835]     return self.gen.next()
       [2017/03/31 18:59:15.835]   File "/data/mci/a5834e50443aad0a7e942f156a86f8ca/src/.tox/synchro/tmp/mongo-python-driver/test/test_collection.py", line 131, in write_concern_collection
       [2017/03/31 18:59:15.835]     write_concern=WriteConcern(w=len(client_context.nodes) + 1))
       [2017/03/31 18:59:15.835] TypeError: __init__() got an unexpected keyword argument 'write_concern'
       [2017/03/31 18:59:15.835] ======================================================================
       [2017/03/31 18:59:15.835] ERROR: test_drop_index (test.test_collection.TestCollection)
       [2017/03/31 18:59:15.835] ----------------------------------------------------------------------
       [2017/03/31 18:59:15.835] Traceback (most recent call last):
       [2017/03/31 18:59:15.835]   File "/data/mci/a5834e50443aad0a7e942f156a86f8ca/src/.tox/synchro/tmp/mongo-python-driver/test/test_collection.py", line 283, in test_drop_index
       [2017/03/31 18:59:15.835]     with self.write_concern_collection() as coll:
       [2017/03/31 18:59:15.835]   File "/opt/python/2.7/lib/python2.7/contextlib.py", line 17, in __enter__
       [2017/03/31 18:59:15.835]     return self.gen.next()
       [2017/03/31 18:59:15.836]   File "/data/mci/a5834e50443aad0a7e942f156a86f8ca/src/.tox/synchro/tmp/mongo-python-driver/test/test_collection.py", line 131, in write_concern_collection
       [2017/03/31 18:59:15.836]     write_concern=WriteConcern(w=len(client_context.nodes) + 1))
       [2017/03/31 18:59:15.836] TypeError: __init__() got an unexpected keyword argument 'write_concern'
       [2017/03/31 18:59:15.836] ======================================================================
       [2017/03/31 18:59:15.836] ERROR: test_map_reduce (test.test_collection.TestCollection)
       [2017/03/31 18:59:15.836] ----------------------------------------------------------------------
       [2017/03/31 18:59:15.836] Traceback (most recent call last):
       [2017/03/31 18:59:15.836]   File "/data/mci/a5834e50443aad0a7e942f156a86f8ca/src/.tox/synchro/tmp/mongo-python-driver/test/test_collection.py", line 2051, in test_map_reduce
       [2017/03/31 18:59:15.836]     with self.write_concern_collection() as coll:
       [2017/03/31 18:59:15.836]   File "/opt/python/2.7/lib/python2.7/contextlib.py", line 17, in __enter__
       [2017/03/31 18:59:15.836]     return self.gen.next()
       [2017/03/31 18:59:15.836]   File "/data/mci/a5834e50443aad0a7e942f156a86f8ca/src/.tox/synchro/tmp/mongo-python-driver/test/test_collection.py", line 131, in write_concern_collection
       [2017/03/31 18:59:15.836]     write_concern=WriteConcern(w=len(client_context.nodes) + 1))
       [2017/03/31 18:59:15.836] TypeError: __init__() got an unexpected keyword argument 'write_concern'
       [2017/03/31 18:59:15.836] ======================================================================
       [2017/03/31 18:59:15.836] ERROR: test_reindex (test.test_collection.TestCollection)
       [2017/03/31 18:59:15.836] ----------------------------------------------------------------------
       [2017/03/31 18:59:15.836] Traceback (most recent call last):
       [2017/03/31 18:59:15.836]   File "/data/mci/a5834e50443aad0a7e942f156a86f8ca/src/.tox/synchro/tmp/mongo-python-driver/test/test_collection.py", line 312, in test_reindex
       [2017/03/31 18:59:15.836]     with self.write_concern_collection() as coll:
       [2017/03/31 18:59:15.836]   File "/opt/python/2.7/lib/python2.7/contextlib.py", line 17, in __enter__
       [2017/03/31 18:59:15.836]     return self.gen.next()
       [2017/03/31 18:59:15.836]   File "/data/mci/a5834e50443aad0a7e942f156a86f8ca/src/.tox/synchro/tmp/mongo-python-driver/test/test_collection.py", line 131, in write_concern_collection
       [2017/03/31 18:59:15.836]     write_concern=WriteConcern(w=len(client_context.nodes) + 1))
       [2017/03/31 18:59:15.836] TypeError: __init__() got an unexpected keyword argument 'write_concern'
       [2017/03/31 18:59:15.836] ======================================================================
       [2017/03/31 18:59:15.836] ERROR: test_rename (test.test_collection.TestCollection)
       [2017/03/31 18:59:15.836] ----------------------------------------------------------------------
       [2017/03/31 18:59:15.836] Traceback (most recent call last):
       [2017/03/31 18:59:15.836]   File "/data/mci/a5834e50443aad0a7e942f156a86f8ca/src/.tox/synchro/tmp/mongo-python-driver/test/test_collection.py", line 1784, in test_rename
       [2017/03/31 18:59:15.836]     with self.write_concern_collection() as coll:
       [2017/03/31 18:59:15.836]   File "/opt/python/2.7/lib/python2.7/contextlib.py", line 17, in __enter__
       [2017/03/31 18:59:15.836]     return self.gen.next()
       [2017/03/31 18:59:15.836]   File "/data/mci/a5834e50443aad0a7e942f156a86f8ca/src/.tox/synchro/tmp/mongo-python-driver/test/test_collection.py", line 131, in write_concern_collection
       [2017/03/31 18:59:15.836]     write_concern=WriteConcern(w=len(client_context.nodes) + 1))
       [2017/03/31 18:59:15.836] TypeError: __init__() got an unexpected keyword argument 'write_concern'
       [2017/03/31 18:59:15.836] ======================================================================
       [2017/03/31 18:59:15.836] ERROR: test_drop_collection (test.test_database.TestDatabase)
       [2017/03/31 18:59:15.836] ----------------------------------------------------------------------
       [2017/03/31 18:59:15.836] Traceback (most recent call last):
       [2017/03/31 18:59:15.836]   File "/data/mci/a5834e50443aad0a7e942f156a86f8ca/src/.tox/synchro/tmp/mongo-python-driver/test/test_database.py", line 225, in test_drop_collection
       [2017/03/31 18:59:15.836]     write_concern=IMPOSSIBLE_WRITE_CONCERN)
       [2017/03/31 18:59:15.836] TypeError: __init__() got an unexpected keyword argument 'write_concern'
       [2017/03/31 18:59:15.836] ======================================================================
       [2017/03/31 18:59:15.836] ERROR: test_last_write_date (test.test_max_staleness.TestMaxStaleness)
       [2017/03/31 18:59:15.836] ----------------------------------------------------------------------
       [2017/03/31 18:59:15.836] Traceback (most recent call last):
       [2017/03/31 18:59:15.836]   File "/data/mci/a5834e50443aad0a7e942f156a86f8ca/src/.tox/synchro/tmp/mongo-python-driver/test/__init__.py", line 324, in wrap
       [2017/03/31 18:59:15.836]     return f(*args, **kwargs)
       [2017/03/31 18:59:15.837]   File "/data/mci/a5834e50443aad0a7e942f156a86f8ca/src/.tox/synchro/tmp/mongo-python-driver/test/__init__.py", line 324, in wrap
       [2017/03/31 18:59:15.837]     return f(*args, **kwargs)
       [2017/03/31 18:59:15.837]   File "/data/mci/a5834e50443aad0a7e942f156a86f8ca/src/.tox/synchro/tmp/mongo-python-driver/test/test_max_staleness.py", line 126, in test_last_write_date
       [2017/03/31 18:59:15.837]     server = client._topology.select_server(writable_server_selector)
       [2017/03/31 18:59:15.837]   File "synchro/__init__.py", line 317, in __getattr__
       [2017/03/31 18:59:15.837]     return Database(self, name, delegate=getattr(self.delegate, name))
       [2017/03/31 18:59:15.837]   File "motor/core.py", line 150, in __getattr__
       [2017/03/31 18:59:15.837]     self.__class__.__name__, name, name, name))
       [2017/03/31 18:59:15.837] AttributeError: MotorClient has no attribute '_topology'. To access the _topology database, use client['_topology'].
      

            Assignee:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Reporter:
            bernie@mongodb.com Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: