You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by "davidzollo (via GitHub)" <gi...@apache.org> on 2026/04/22 09:40:45 UTC
[I] [Bug][Zeta] Master and worker separated clusters still route control operations to non-coordinator nodes [seatunnel]
davidzollo opened a new issue, #10807:
URL: https://github.com/apache/seatunnel/issues/10807
### Search before asking
- [x] I had searched in the issues and found no similar issue.
### What happened
On the latest `dev` branch (`553b59219` at the time of checking), Zeta already has `clusterRole` support and master-only nodes no longer start worker slot/task services. However, several runtime paths still assume the Hazelcast master is also the active SeaTunnel coordinator or that every cluster member is a worker.
Confirmed code paths:
1. `NodeEngineUtil.sendOperationToMasterNode()` and `SeaTunnelServer.isMasterNode()` still use `nodeEngine.getMasterAddress()` directly. If a worker-only/lite member becomes the Hazelcast master after failover, control-plane operations such as submit, heartbeat, checkpoint query, job status, and task events can be sent to a node without `CoordinatorService`.
2. `SendConnectorJarToMemberNodeOperation` and `DeleteConnectorJarInExecutionNode` still call `seaTunnelServer.getTaskExecutionService().getServerConnectorPackageClient()` without checking whether the target node is worker-capable. Broadcasting connector jar operations to a master-only node can fail with NPE.
3. The system monitoring REST response is based on Hazelcast health metrics only and does not expose SeaTunnel node role/capability fields, so callers cannot reliably distinguish coordinator-capable nodes from worker-capable nodes.
4. Resource application supports tag filtering, but there is no address-based worker group contract for deployments that submit a selected Zeta worker group as concrete node addresses.
### SeaTunnel Version
dev
### SeaTunnel Config
Separated Zeta cluster deployment with master-only and worker-only nodes.
### Running Command
Start Zeta nodes with `--role master` and `--role worker`, then submit/query jobs through REST or client when the Hazelcast master address is not the active coordinator-capable node.
### Error Exception
Potential failures include `Please don't get coordinator service from an inactive master node` or NPE from connector jar operations on master-only nodes.
### Flink or Spark Version
Zeta Engine
### Java or Scala Version
Java 8+
### Screenshots
_No response_
### Are you willing to submit PR?
- [x] Yes I am willing to submit a PR!
--
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: commits-unsubscribe@seatunnel.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Zeta] Master and worker separated clusters still route control operations to non-coordinator nodes [seatunnel]
Posted by "DanielLeens (via GitHub)" <gi...@apache.org>.
DanielLeens commented on issue #10807:
URL: https://github.com/apache/seatunnel/issues/10807#issuecomment-4300852200
I traced the paths described here, and this does look like a real Zeta control-plane bug in the master/worker separated deployment model.
The risky part is that some runtime paths still treat the Hazelcast master address as equivalent to the active SeaTunnel coordinator. For example, `NodeEngineUtil.sendOperationToMasterNode()` still routes directly to `nodeEngine.getMasterAddress()`, while `SeaTunnelServer.isMasterNode()` also checks the Hazelcast master address rather than the node's SeaTunnel coordinator capability. In a separated-role cluster, those two concepts can diverge after failover, so operations such as REST job control, task events, checkpoint/status queries, or coordinator access may be routed to a node that is not actually coordinator-capable.
I also agree with the connector-jar operation concern. `SendConnectorJarToMemberNodeOperation` and `DeleteConnectorJarInExecutionNode` assume `getTaskExecutionService()` is available on the target member, which is not true for a master-only node. That path should be guarded by worker capability or only target worker-capable members.
I see PR #10808 is already open for this. The review should focus on a few invariants:
1. coordinator routing must use a SeaTunnel coordinator-capable node, not only the Hazelcast master address;
2. worker-only operations must not be sent to master-only nodes;
3. REST / monitoring responses should expose enough SeaTunnel role information so callers can distinguish coordinator-capable and worker-capable members;
4. failover tests should cover the case where the Hazelcast master and SeaTunnel active coordinator are not the same node.
This issue is worth keeping open until the PR is merged and the separated-role failover path is covered by tests.
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug][Zeta] Master and worker separated clusters still route control operations to non-coordinator nodes [seatunnel]
Posted by "davidzollo (via GitHub)" <gi...@apache.org>.
davidzollo closed issue #10807: [Bug][Zeta] Master and worker separated clusters still route control operations to non-coordinator nodes
URL: https://github.com/apache/seatunnel/issues/10807
--
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: commits-unsubscribe@seatunnel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org