-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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][E2E] Enable zeta e2e and Fix the error when e2e enable #4615
Conversation
seatunnel-api/src/main/java/org/apache/seatunnel/api/env/EnvCommonOptions.java
Show resolved
Hide resolved
93c2b9c
to
170f2f7
Compare
great job |
...l-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base/src/test/resources/log4j2.properties
Outdated
Show resolved
Hide resolved
...l-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base/src/test/resources/log4j2.properties
Outdated
Show resolved
Hide resolved
...l-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base/src/test/resources/log4j2.properties
Outdated
Show resolved
Hide resolved
@@ -397,7 +397,7 @@ private void startTriggerPendingCheckpoint( | |||
LOG.info("wait checkpoint completed: " + pendingCheckpoint.getCheckpointId()); | |||
PassiveCompletableFuture<CompletedCheckpoint> completableFuture = | |||
pendingCheckpoint.getCompletableFuture(); | |||
completableFuture.whenComplete( | |||
completableFuture.whenCompleteAsync( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: make sure the TaskAcknowledgeOperation
thread will be release after operation called.
private final Set<TaskLocation> pipelineSubtasks = new HashSet<>(); | ||
private final Set<TaskLocation> startingSubtasks = new HashSet<>(); | ||
private final Map<ActionStateKey, Integer> pipelineActions = new HashMap<>(); | ||
private final Set<TaskLocation> pipelineSubtasks = new CopyOnWriteArraySet<>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: make sure Set::Stream doesn't have concurrency issues
@@ -133,7 +135,7 @@ public ProgressState call() throws Exception { | |||
public void triggerBarrier(Barrier barrier) throws Exception { | |||
log.debug("split enumer trigger barrier [{}]", barrier); | |||
if (barrier.prepareClose()) { | |||
this.currState = PREPARE_CLOSE; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: The state machine state cannot be changed outside the state machine. Just should send event.
@@ -262,12 +264,16 @@ private void stateProcess() throws Exception { | |||
if (restoreComplete.isDone()) { | |||
currState = READY_START; | |||
reportTaskStatus(READY_START); | |||
} else { | |||
Thread.sleep(100); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid CPU cost too high.
@@ -335,15 +343,15 @@ public Set<URL> getJarsUrl() { | |||
@Override | |||
public void notifyCheckpointComplete(long checkpointId) throws Exception { | |||
getEnumerator().notifyCheckpointComplete(checkpointId); | |||
if (currState == PREPARE_CLOSE && prepareCloseBarrierId.get() == checkpointId) { | |||
if (prepareCloseBarrierId.get() == checkpointId) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: Unecessary check
@@ -37,7 +37,8 @@ public static <E> InvocationFuture<E> sendOperationToMasterNode( | |||
.createInvocationBuilder( | |||
SeaTunnelServer.SERVICE_NAME, | |||
operation, | |||
nodeEngine.getMasterAddress()); | |||
nodeEngine.getMasterAddress()) | |||
.setAsync(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In task our all opeartion should be async as default .
close #4636
Purpose of this pull request
Check list
New License Guide
release-note
.