-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[Hotfix][Zeta] Fix taskgroup failed log lost #7241
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| # | ||
| # Licensed to the Apache Software Foundation (ASF) under one or more | ||
| # contributor license agreements. See the NOTICE file distributed with | ||
| # this work for additional information regarding copyright ownership. | ||
| # The ASF licenses this file to You under the Apache License, Version 2.0 | ||
| # (the "License"); you may not use this file except in compliance with | ||
| # the License. You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
| # | ||
| ###### | ||
| ###### This config file is a demonstration of streaming processing in seatunnel config | ||
| ###### | ||
|
|
||
| env { | ||
| parallelism = 1 | ||
| job.mode = "STREAMING" | ||
| checkpoint.interval = 5000 | ||
| } | ||
|
|
||
| source { | ||
| # This is a example source plugin **only for test and demonstrate the feature source plugin** | ||
| FakeSource { | ||
| result_table_name = "fake" | ||
| row.num = 100 | ||
| split.num = 5 | ||
| schema = { | ||
| fields { | ||
| name = "string" | ||
| age = "int" | ||
| } | ||
| } | ||
| parallelism = 1 | ||
| } | ||
| } | ||
|
|
||
| transform { | ||
| } | ||
|
|
||
| sink { | ||
| InMemory { | ||
| source_table_name="fake" | ||
| throw_runtime_exception_list=["runtime error1", "runtime error 2", "runtime error 3", "runtime error 4"] | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -214,7 +214,7 @@ public PassiveCompletableFuture<TaskExecutionState> initStateFuture() { | |||
| } | ||||
| } else if (ExecutionState.DEPLOYING.equals(currExecutionState)) { | ||||
| if (!checkTaskGroupIsExecuting(taskGroupLocation)) { | ||||
| updateTaskState(ExecutionState.RUNNING); | ||||
| updateTaskState(ExecutionState.FAILING); | ||||
| } | ||||
| } | ||||
| return new PassiveCompletableFuture<>(this.taskFuture); | ||||
|
|
@@ -485,6 +485,8 @@ private void resetExecutionState() { | |||
| () -> { | ||||
| updateStateTimestamps(ExecutionState.CREATED); | ||||
| runningJobStateIMap.set(taskGroupLocation, ExecutionState.CREATED); | ||||
| // reset the errorByPhysicalVertex | ||||
| errorByPhysicalVertex = new AtomicReference<>(); | ||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Line 80 in 4b3af9b
InMemorySinkWriter is a good choice because it can construct different error messages each time, so you can check the error messages to see if the changes are effective.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Use static variables to record the current number of retries
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok, I will try it.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||||
| return null; | ||||
| }, | ||||
| new RetryUtils.RetryMaterial( | ||||
|
|
||||
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.
cc @Hisoka-X