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

Test failure - test_discovery_and_monitoring with Jython: None != {'clusterTime': Timestamp(0, 1)}

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.11
    • Affects Version/s: None
    • Component/s: Tests
    • None

      Many of the test_discovery_and_monitoring tests are failing on Jython after PYTHON-2121:

       [2020/06/08 22:21:13.792] FAIL [0.004s]: test_single_too_old_then_upgraded (test_discovery_and_monitoring.TestAllScenarios)
       [2020/06/08 22:21:13.792] ----------------------------------------------------------------------
       [2020/06/08 22:21:13.792] Traceback (most recent call last):
       [2020/06/08 22:21:13.792]   File "/data/mci/63413093ee2027ce2b8ba045c08ab46d/src/test/test_discovery_and_monitoring.py", line 196, in run_scenario
       [2020/06/08 22:21:13.792]     check_outcome(self, c, phase['outcome'])
       [2020/06/08 22:21:13.792]   File "/opt/python/jython2.7/Lib/contextlib.py", line 35, in __exit__
       [2020/06/08 22:21:13.792]     self.gen.throw(type, value, traceback)
       [2020/06/08 22:21:13.792]   File "/data/mci/63413093ee2027ce2b8ba045c08ab46d/src/test/utils.py", line 908, in assertion_context
       [2020/06/08 22:21:13.792]     py3compat.reraise(type(exc), msg, sys.exc_info()[2])
       [2020/06/08 22:21:13.792]   File "/data/mci/63413093ee2027ce2b8ba045c08ab46d/src/bson/py3compat.py", line 93, in reraise
       [2020/06/08 22:21:13.792]     _reraise(exctype, str(value), trace)
       [2020/06/08 22:21:13.792]   File "/data/mci/63413093ee2027ce2b8ba045c08ab46d/src/test/test_discovery_and_monitoring.py", line 196, in run_scenario
       [2020/06/08 22:21:13.792]     check_outcome(self, c, phase['outcome'])
       [2020/06/08 22:21:13.792]   File "/data/mci/63413093ee2027ce2b8ba045c08ab46d/src/test/test_discovery_and_monitoring.py", line 132, in check_outcome
       [2020/06/08 22:21:13.792]     topology.description.check_compatible()
       [2020/06/08 22:21:13.792] AssertionError: ConfigurationError not raised (phase: 0)
       [2020/06/08 22:21:13.792] ======================================================================
       [2020/06/08 22:21:13.792] FAIL [0.004s]: test_single_unavailable_seed (test_discovery_and_monitoring.TestAllScenarios)
       [2020/06/08 22:21:13.792] ----------------------------------------------------------------------
       [2020/06/08 22:21:13.792] Traceback (most recent call last):
       [2020/06/08 22:21:13.792]   File "/data/mci/63413093ee2027ce2b8ba045c08ab46d/src/test/test_discovery_and_monitoring.py", line 196, in run_scenario
       [2020/06/08 22:21:13.792]     check_outcome(self, c, phase['outcome'])
       [2020/06/08 22:21:13.792]   File "/opt/python/jython2.7/Lib/contextlib.py", line 35, in __exit__
       [2020/06/08 22:21:13.792]     self.gen.throw(type, value, traceback)
       [2020/06/08 22:21:13.792]   File "/data/mci/63413093ee2027ce2b8ba045c08ab46d/src/test/utils.py", line 908, in assertion_context
       [2020/06/08 22:21:13.792]     py3compat.reraise(type(exc), msg, sys.exc_info()[2])
       [2020/06/08 22:21:13.792]   File "/data/mci/63413093ee2027ce2b8ba045c08ab46d/src/bson/py3compat.py", line 93, in reraise
       [2020/06/08 22:21:13.792]     _reraise(exctype, str(value), trace)
       [2020/06/08 22:21:13.792]   File "/data/mci/63413093ee2027ce2b8ba045c08ab46d/src/test/test_discovery_and_monitoring.py", line 196, in run_scenario
       [2020/06/08 22:21:13.792]     check_outcome(self, c, phase['outcome'])
       [2020/06/08 22:21:13.792]   File "/data/mci/63413093ee2027ce2b8ba045c08ab46d/src/test/test_discovery_and_monitoring.py", line 141, in check_outcome
       [2020/06/08 22:21:13.792]     self.assertTrue(topology.has_server(node))
       [2020/06/08 22:21:13.792] AssertionError: False is not true (phase: 0)
       [2020/06/08 22:21:13.792] ======================================================================
       [2020/06/08 22:21:13.792] FAIL [0.006s]: test_cluster_time_comparison (test_discovery_and_monitoring.TestClusterTimeComparison)
       [2020/06/08 22:21:13.792] ----------------------------------------------------------------------
       [2020/06/08 22:21:13.792] Traceback (most recent call last):
       [2020/06/08 22:21:13.792]   File "/data/mci/63413093ee2027ce2b8ba045c08ab46d/src/test/test_discovery_and_monitoring.py", line 241, in test_cluster_time_comparison
       [2020/06/08 22:21:13.792]     send_cluster_time(0, 1, True)
       [2020/06/08 22:21:13.792]   File "/data/mci/63413093ee2027ce2b8ba045c08ab46d/src/test/test_discovery_and_monitoring.py", line 237, in send_cluster_time
       [2020/06/08 22:21:13.792]     self.assertEqual(actual, new)
       [2020/06/08 22:21:13.792] AssertionError: None != {'clusterTime': Timestamp(0, 1)}
      

      https://evergreen.mongodb.com/task/mongo_python_driver_tests_python_version_rhel62_test_ssl__platform~rhel62_auth~auth_ssl~nossl_python_version~jython2.7_coverage~coverage_test_4.2_replica_set_4c56ead95522cccc49ce09ae3bf025baaec0666e_20_06_09_03_07_01

            Assignee:
            prashant.mital Prashant Mital (Inactive)
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: