This is an automated email from the ASF dual-hosted git repository.
github-merge-queue[bot] pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/seatunnel.git
The following commit(s) were added to refs/heads/dev by this push:
new 93328e4a2e [Test][Core] Shut down ServerExecuteCommandTest workers
before masters (#12640)
93328e4a2e is described below
commit 93328e4a2e0ecb08d943c30b56ecb0c5a9cfeda1
Author: Daniel <[email protected]>
AuthorDate: Tue Nov 24 12:29:54 2026 +0000
[Test][Core] Shut down ServerExecuteCommandTest workers before masters
(#12640)
Co-authored-by: David Zollo <[email protected]>
Co-authored-by: Claude Fable 5.1 <[email protected]>
Co-authored-by: David Zollo <[email protected]>
---
.../starter/seatunnel/command/ServerExecuteCommandTest.java | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git
a/seatunnel-core/seatunnel-starter/src/test/java/org/apache/seatunnel/core/starter/seatunnel/command/ServerExecuteCommandTest.java
b/seatunnel-core/seatunnel-starter/src/test/java/org/apache/seatunnel/core/starter/seatunnel/command/ServerExecuteCommandTest.java
index 65712735ad..6f0b51ec5c 100644
---
a/seatunnel-core/seatunnel-starter/src/test/java/org/apache/seatunnel/core/starter/seatunnel/command/ServerExecuteCommandTest.java
+++
b/seatunnel-core/seatunnel-starter/src/test/java/org/apache/seatunnel/core/starter/seatunnel/command/ServerExecuteCommandTest.java
@@ -116,9 +116,15 @@ public class ServerExecuteCommandTest {
Set<Member> members = serverExecuteCommand.showClusterMembers();
Assertions.assertEquals(5, members.size());
} finally {
- for (HazelcastInstanceImpl inst : instances) {
+ // Stop the workers before the masters. A worker that loses its
last master terminates
+ // itself ("All node is lite node, shutdown this cluster"). When
that self-termination
+ // races with a graceful shutdown() issued from here, the graceful
shutdown wins the
+ // state transition and then waits for a master that no longer
exists, so it never
+ // returns and the test (and the whole unit-test job) hangs until
the CI timeout.
+ // Shutting down in reverse creation order keeps a master alive
for every worker.
+ for (int i = instances.size() - 1; i >= 0; i--) {
try {
- inst.shutdown();
+ instances.get(i).shutdown();
} catch (Exception ignored) {
}
}