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][E2E] Enable zeta e2e and Fix the error when e2e enable #4615

Merged
merged 28 commits into from
Apr 23, 2023

Conversation

TyrantLucifer
Copy link
Member

@TyrantLucifer TyrantLucifer commented Apr 18, 2023

close #4636

Purpose of this pull request

Check list

@TyrantLucifer TyrantLucifer changed the title [Feature][Zeat][E2E] Enable zeta e2e [Feature][Zeta][E2E] Enable zeta e2e Apr 18, 2023
@hailin0
Copy link
Member

hailin0 commented Apr 21, 2023

great job

@@ -397,7 +397,7 @@ private void startTriggerPendingCheckpoint(
LOG.info("wait checkpoint completed: " + pendingCheckpoint.getCheckpointId());
PassiveCompletableFuture<CompletedCheckpoint> completableFuture =
pendingCheckpoint.getCompletableFuture();
completableFuture.whenComplete(
completableFuture.whenCompleteAsync(
Copy link
Member

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<>();
Copy link
Member

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;
Copy link
Member

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);
Copy link
Member

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) {
Copy link
Member

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();
Copy link
Member

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 .

@EricJoy2048 EricJoy2048 changed the title [Feature][Zeta][E2E] Enable zeta e2e [Feature][Zeta][E2E] Enable zeta e2e and Fix the error when e2e enable Apr 23, 2023
@EricJoy2048 EricJoy2048 merged commit c8a5d52 into apache:dev Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature][Zeta] Update default value for job.mode to BATCH
4 participants