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

Jython fails TLS handshake on serverless

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.12
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Jython fails TLS handshake on serverless (added in PYTHON-2800):

       [2021/07/13 00:51:46.480] Got this failure java.nio.channels.ClosedChannelException during SSL handshake (<_realsocket at 0x1b type=client open_count=1 channel=[id: 0xe4864370, 0.0.0.0/0.0.0.0:33461] timeout=20.0>)
       [2021/07/13 00:51:48.289] s.E.ssssss...
       [2021/07/13 00:51:48.289] ======================================================================
       [2021/07/13 00:51:48.289] ERROR: test_serverless (__main__.TestAtlasConnect)
       [2021/07/13 00:51:48.289] ----------------------------------------------------------------------
       [2021/07/13 00:51:48.289] Traceback (most recent call last):
       [2021/07/13 00:51:48.289]   File "test/atlas/test_connection.py", line 83, in test_serverless
       [2021/07/13 00:51:48.289]     connect(URIS['ATLAS_SERVERLESS'])
       [2021/07/13 00:51:48.289]   File "test/atlas/test_connection.py", line 60, in connect
       [2021/07/13 00:51:48.289]     client.admin.command('ping')
       [2021/07/13 00:51:48.289]   File "pymongo/database.py", line 749, in command
       [2021/07/13 00:51:48.289]     read_preference = ((session and session._txn_read_preference())
       [2021/07/13 00:51:48.289]   File "/opt/python/jython2.7/Lib/contextlib.py", line 17, in __enter__
       [2021/07/13 00:51:48.289]     return self.gen.next()
       [2021/07/13 00:51:48.289]   File "/opt/python/jython2.7/Lib/contextlib.py", line 17, in __enter__
       [2021/07/13 00:51:48.289]     return self.gen.next()
       [2021/07/13 00:51:48.289]   File "pymongo/mongo_client.py", line 1387, in _socket_for_reads
       [2021/07/13 00:51:48.289]     server = self._select_server(read_preference, session)
       [2021/07/13 00:51:48.289]   File "/opt/python/jython2.7/Lib/contextlib.py", line 17, in __enter__
       [2021/07/13 00:51:48.289]     return self.gen.next()
       [2021/07/13 00:51:48.289]   File "/opt/python/jython2.7/Lib/contextlib.py", line 17, in __enter__
       [2021/07/13 00:51:48.289]     return self.gen.next()
       [2021/07/13 00:51:48.289]   File "pymongo/mongo_client.py", line 1305, in _get_socket
       [2021/07/13 00:51:48.289]     if in_txn and session._pinned_connection:
       [2021/07/13 00:51:48.289]   File "/opt/python/jython2.7/Lib/contextlib.py", line 17, in __enter__
       [2021/07/13 00:51:48.289]     return self.gen.next()
       [2021/07/13 00:51:48.289]   File "/opt/python/jython2.7/Lib/contextlib.py", line 17, in __enter__
       [2021/07/13 00:51:48.289]     return self.gen.next()
       [2021/07/13 00:51:48.289]   File "pymongo/pool.py", line 1331, in get_socket
       [2021/07/13 00:51:48.289]     sock_info = self._get_socket(all_credentials)
       [2021/07/13 00:51:48.289]   File "pymongo/pool.py", line 1397, in _get_socket
       [2021/07/13 00:51:48.289]     sock_info = self.connect(all_credentials)
       [2021/07/13 00:51:48.289]   File "pymongo/pool.py", line 1280, in connect
       [2021/07/13 00:51:48.289]     sock = _configured_socket(self.address, self.opts)
       [2021/07/13 00:51:48.289]   File "pymongo/pool.py", line 1053, in _configured_socket
       [2021/07/13 00:51:48.289]     _raise_connection_failure(address, exc, "SSL handshake failed: ")
       [2021/07/13 00:51:48.289]   File "pymongo/pool.py", line 247, in _raise_connection_failure
       [2021/07/13 00:51:48.289]     raise AutoReconnect(msg)
       [2021/07/13 00:51:48.289] AutoReconnect: SSL handshake failed: 10673-drivers-testing-lb.2tzoa.mongodb-dev.net:27017: [Errno 1] Socket closed
      

      https://evergreen.mongodb.com/task/mongo_python_driver_3.12_atlas_connect__platform~awslinux_python_version~jython2.7_atlas_connect_da975723f60b52fe6598d2f6118dc3b37d2779a2_21_07_13_00_16_41

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: