NikhilUjjwal7 opened a new pull request, #7595:
URL: https://github.com/apache/kyuubi/pull/7595

   ### Why are the changes needed?
   
   Fixes #7360.
   
   `python/pyhive/tests/test_hive.py::TestHive::test_description` can fail 
intermittently while opening the Hive connection with `TTransportException: 
TSocket read 0 bytes`.
   
   This patch makes the test connection helper retry transient 
`TTransportException`s before failing, which makes the PyHive integration tests 
more tolerant of short HiveServer2 startup or connection timing issues.
   
   ### How was this patch tested?
   
   Added a unit test that simulates a transient `TTransportException` from 
`hive.connect` and verifies that `TestHive.connect()` retries and succeeds on 
the next attempt.
   
   Tested with:
   
   ```bash
   python -m pytest 
python/pyhive/tests/test_hive.py::TestHive::test_connect_retries_transient_transport_failure
 -q
   
   Result:
   1 passed in 1.07s


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to