-
Type:
Task
-
Resolution: Cannot Reproduce
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Various cursor related tests are currently failing against the development version of the server, 3.7. Something has changed related to killCursors:
[2017/12/08 17:11:28.115] ====================================================================== [2017/12/08 17:11:28.115] ERROR: test_kill_cursors (test_change_stream.TestChangeStream) [2017/12/08 17:11:28.115] The killCursors command sent during the resume process must not be [2017/12/08 17:11:28.115] ---------------------------------------------------------------------- [2017/12/08 17:11:28.115] Traceback (most recent call last): [2017/12/08 17:11:28.115] File "/data/mci/cb89f4531657b1fcfd421fc2e0cfb73e/src/test/test_change_stream.py", line 267, in test_kill_cursors [2017/12/08 17:11:28.115] self.insert_and_check(change_stream, {'_id': 2}) [2017/12/08 17:11:28.115] File "/data/mci/cb89f4531657b1fcfd421fc2e0cfb73e/src/pymongo/change_stream.py", line 103, in __exit__ [2017/12/08 17:11:28.115] self.close() [2017/12/08 17:11:28.115] File "/data/mci/cb89f4531657b1fcfd421fc2e0cfb73e/src/pymongo/change_stream.py", line 64, in close [2017/12/08 17:11:28.115] self._cursor.close() [2017/12/08 17:11:28.115] File "/data/mci/cb89f4531657b1fcfd421fc2e0cfb73e/src/test/test_change_stream.py", line 259, in raise_error [2017/12/08 17:11:28.115] raise ServerSelectionTimeoutError('mock error') [2017/12/08 17:11:28.115] ServerSelectionTimeoutError: mock error [2017/12/08 17:11:28.115] ====================================================================== [2017/12/08 17:11:28.115] FAIL: test_cursor_manager (test_cursor_manager.TestCursorManager) [2017/12/08 17:11:28.115] ---------------------------------------------------------------------- [2017/12/08 17:11:28.115] Traceback (most recent call last): [2017/12/08 17:11:28.115] File "/data/mci/cb89f4531657b1fcfd421fc2e0cfb73e/src/test/test_cursor_manager.py", line 90, in test_cursor_manager [2017/12/08 17:11:28.115] wait_until(raises_cursor_not_found, 'close cursor') [2017/12/08 17:11:28.117] File "/data/mci/cb89f4531657b1fcfd421fc2e0cfb73e/src/test/utils.py", line 309, in wait_until [2017/12/08 17:11:28.117] raise AssertionError("Didn't ever %s" % success_description) [2017/12/08 17:11:28.118] AssertionError: Didn't ever close cursor [2017/12/08 17:11:28.118] ====================================================================== [2017/12/08 17:11:28.119] FAIL: test_kill_cursors_with_cursoraddress (test_legacy_api.TestLegacy) [2017/12/08 17:11:28.119] ---------------------------------------------------------------------- [2017/12/08 17:11:28.119] Traceback (most recent call last): [2017/12/08 17:11:28.119] File "/data/mci/cb89f4531657b1fcfd421fc2e0cfb73e/src/test/test_legacy_api.py", line 1371, in test_kill_cursors_with_cursoraddress [2017/12/08 17:11:28.119] wait_until(raises_cursor_not_found, 'close cursor') [2017/12/08 17:11:28.119] File "/data/mci/cb89f4531657b1fcfd421fc2e0cfb73e/src/test/utils.py", line 309, in wait_until [2017/12/08 17:11:28.119] raise AssertionError("Didn't ever %s" % success_description) [2017/12/08 17:11:28.119] AssertionError: Didn't ever close cursor [2017/12/08 17:11:28.119] ====================================================================== [2017/12/08 17:11:28.119] FAIL: test_kill_cursors_with_tuple (test_legacy_api.TestLegacy) [2017/12/08 17:11:28.119] ---------------------------------------------------------------------- [2017/12/08 17:11:28.119] Traceback (most recent call last): [2017/12/08 17:11:28.119] File "/data/mci/cb89f4531657b1fcfd421fc2e0cfb73e/src/test/test_legacy_api.py", line 1396, in test_kill_cursors_with_tuple [2017/12/08 17:11:28.119] wait_until(raises_cursor_not_found, 'close cursor') [2017/12/08 17:11:28.119] File "/data/mci/cb89f4531657b1fcfd421fc2e0cfb73e/src/test/utils.py", line 309, in wait_until [2017/12/08 17:11:28.119] raise AssertionError("Didn't ever %s" % success_description) [2017/12/08 17:11:28.119] AssertionError: Didn't ever close cursor [2017/12/08 17:11:28.119] ====================================================================== [2017/12/08 17:11:28.119] FAIL: test_kill_cursor_explicit_primary (test_replica_set_client.TestReplicaSetClient) [2017/12/08 17:11:28.119] ---------------------------------------------------------------------- [2017/12/08 17:11:28.119] Traceback (most recent call last): [2017/12/08 17:11:28.119] File "/data/mci/cb89f4531657b1fcfd421fc2e0cfb73e/src/test/test_replica_set_client.py", line 274, in test_kill_cursor_explicit_primary [2017/12/08 17:11:28.119] self._test_kill_cursor_explicit(ReadPreference.PRIMARY) [2017/12/08 17:11:28.119] File "/data/mci/cb89f4531657b1fcfd421fc2e0cfb73e/src/test/test_replica_set_client.py", line 271, in _test_kill_cursor_explicit [2017/12/08 17:11:28.119] self.assertRaises(OperationFailure, lambda: list(cursor2)) [2017/12/08 17:11:28.119] AssertionError: OperationFailure not raised [2017/12/08 17:11:28.119] ====================================================================== [2017/12/08 17:11:28.119] FAIL: test_kill_cursor_explicit_secondary (test_replica_set_client.TestReplicaSetClient) [2017/12/08 17:11:28.119] ---------------------------------------------------------------------- [2017/12/08 17:11:28.119] Traceback (most recent call last): [2017/12/08 17:11:28.119] File "/data/mci/cb89f4531657b1fcfd421fc2e0cfb73e/src/test/__init__.py", line 365, in wrap [2017/12/08 17:11:28.119] return f(*args, **kwargs) [2017/12/08 17:11:28.119] File "/data/mci/cb89f4531657b1fcfd421fc2e0cfb73e/src/test/test_replica_set_client.py", line 278, in test_kill_cursor_explicit_secondary [2017/12/08 17:11:28.119] self._test_kill_cursor_explicit(ReadPreference.SECONDARY) [2017/12/08 17:11:28.119] File "/data/mci/cb89f4531657b1fcfd421fc2e0cfb73e/src/test/test_replica_set_client.py", line 271, in _test_kill_cursor_explicit [2017/12/08 17:11:28.119] self.assertRaises(OperationFailure, lambda: list(cursor2)) [2017/12/08 17:11:28.119] AssertionError: OperationFailure not raised [2017/12/08 17:11:28.119] ----------------------------------------------------------------------