-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
Affects Version/s: None
-
Component/s: None
-
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
- is caused by
-
PYTHON-2800 Add load balanced serverless connectivity tests
- Closed