Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature][Zeta] Improve local mode startup request ports #4660

Merged
merged 3 commits into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ private void closeClient() {
private HazelcastInstance createServerInLocal(
String clusterName, SeaTunnelConfig seaTunnelConfig) {
seaTunnelConfig.getHazelcastConfig().setClusterName(clusterName);
seaTunnelConfig.getHazelcastConfig().getNetworkConfig().setPortAutoIncrement(true);
return HazelcastInstanceFactory.newHazelcastInstance(
seaTunnelConfig.getHazelcastConfig(),
Thread.currentThread().getName(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ source {
row.num = 100
split.row = 25
split.read-interval = 2000
int.min = 32767
schema = {
fields {
name = "string"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,10 @@ public void notifyAllAction(ConsumerWithException<InternalCheckpointListener> co
@Override
public void restoreState(List<ActionSubtaskState> actionStateList) throws Exception {
log.debug("restoreState for SeaTunnelTask[{}]", actionStateList);
if (null == actionStateList) {
log.debug("restoreState is null, do nothing!");
return;
}
Map<ActionStateKey, List<ActionSubtaskState>> stateMap =
actionStateList.stream()
.collect(
Expand Down