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

   ### Why are the changes needed?
   
   The final engine-list assertion in `AdminCtlSuite` can race asynchronous 
deregistration: Curator's persistent registration may recreate the deleted node 
before the engine's delete watcher closes it. [Master CI failed on this 
assertion](https://github.com/apache/kyuubi/actions/runs/40871723200/job/123440179078).
   
   Retry the existing zero-engine assertion for at most five seconds, matching 
the corresponding REST tests. Production behavior is unchanged.
   
   ### How was this patch tested?
   
   - `AdminCtlSuite`: 3 passed, using a real local Spark 3.5.9 / Scala 2.13.17 
engine and JDK 17.0.20.
   - Relevant reactor `test-compile spotless:check scalastyle:check`, 
`dev/reformat`, and `git diff --check`: passed.
   - An independent probe using the exact relocated ZooKeeper dependency 
reproduced transient node recreation in 2 of 100 trials; all 100 eventually 
became empty. These were dependency-level trials, not 100 CLI suite runs.
   
   The full repository test matrix and upstream CI have not been run for this 
patch.
   
   ### Was this patch assisted by generative AI tooling?
   
   Assisted-by: OpenAI Codex
   


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