Flakey tests:
[2019/03/26 11:36:35.986] ERROR [0.213s]: test_try_next (test_change_stream.TestDatabaseChangeStream) [2019/03/26 11:36:35.986] ---------------------------------------------------------------------- [2019/03/26 11:36:35.986] Traceback (most recent call last): [2019/03/26 11:36:35.986] File "/data/mci/5ef7bc7a56f390e4ff67d489d868ece7/src/test/test_change_stream.py", line 81, in test_try_next [2019/03/26 11:36:35.986] self.assertEqual(change['_id'], stream._resume_token) [2019/03/26 11:36:35.986] TypeError: 'NoneType' object is not subscriptable
I believe the issue is that ChangeStreams only read majority committed data and we are not waiting long enough for the write to be majority committed. The tests should use majority write concern (and maybe increase max_await_time_ms for good measure).
- is caused by
-
PYTHON-1662 Add method to request the next ChangeStream document without blocking forever
- Closed