yuqi1129 opened a new pull request, #14809:
URL: https://github.com/apache/gravitino/pull/14809

   ### What changes were proposed in this pull request?
   
   Backport three Python IT harness fixes from main to branch-1.3:
   
   1. Wait up to 30 seconds (was 5) for the server after a restart. When 
stopping,
      probe the server once per loop instead of running the full startup poll.
      (From #12725.)
   2. In `restart_server`, stop the server first, then remove the data 
directory,
      then start it. Fail fast if the start script fails. (From #13325.)
   3. Wait until the Hive Metastore answers a real Thrift query before tests 
start.
      (Cherry-pick of #13072.)
   
   Only the harness changes are taken. Other helpers added to the same file on 
main
   are left out.
   
   ### Why are the changes needed?
   
   PythonIT on branch-1.3 fails often, while main does not. From 2026-11-03 to
   2026-11-09, there were 16 failed attempts on branch-1.3:
   
   - 9: "Can't start Gravitino server!". The server took about 5.6 seconds to 
start,
     and the check gave up after 5 seconds. Example: the server was ready at
     01:47:12.852, and the last check ran at 01:47:12.645
     
(https://github.com/apache/gravitino/actions/runs/42647665811/job/129565553368).
   - 2: `OSError: Directory not empty` on the data directory. The running server
     wrote new files while the test removed the directory.
   - 1: "Failed to connect to Hive Metastore" in setup.
   - 4: infrastructure problems, not related to tests.
   
   On main, the last 100 PythonIT runs have no failure of the first three kinds.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No. Only Python integration test code changes.
   
   ### How was this patch tested?
   
   - black and pylint pass. All 1033 Python unit tests pass, including the 4 
tests
     added by #13072.
   - PythonIT on this PR checks the integration test path.
   


-- 
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]

Reply via email to