Skip to content

TEZ-4488: TaskSchedulerManager might not be initialized when the first DAG comes - #280

Merged
abstractdog merged 2 commits into
apache:masterfrom
abstractdog:TEZ-4488
Apr 20, 2023
Merged

TEZ-4488: TaskSchedulerManager might not be initialized when the first DAG comes#280
abstractdog merged 2 commits into
apache:masterfrom
abstractdog:TEZ-4488

Conversation

@abstractdog

Copy link
Copy Markdown
Contributor

No description provided.

@tez-yetus

This comment was marked as outdated.

@tez-yetus

This comment was marked as outdated.

@abstractdog
abstractdogforce-pushed the TEZ-4488 branch 2 times, most recently from c6f83ec to 0a46582CompareApril 6, 2023 15:34
@tez-yetus

This comment was marked as outdated.

@tez-yetus

This comment was marked as outdated.

@tez-yetus

This comment was marked as outdated.

taskSchedulerManager);
addIfServiceDependency(taskSchedulerManager, clientRpcServer);

appMasterReadinessService = createAppMasterReadinessService();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue is happening as a corner case, as the taskscheduler could be taking longer to init. In this case, possibly "LlapTaskSchedulerService" is taking time to init due to ZK dependency.

Instead of adding one more dependency, why not throw RuntimeException in TaskSchedulerManager::getTaskSchedulerClassName (i.e until all taskSchedulers are initied w.r.t appContext) ?

@abstractdog

Copy link
Copy Markdown
ContributorAuthor

@rbalamohan: I'm afraid we have no other choice than blocking the first DAG here, as throwing an exception from TaskSchedulerManager::getTaskSchedulerClassName would lead to a similar exception that I'm trying to avoid here
this solution simply blocks the very first DAG, and then lets the rest of them run after a simple AtomicBoolean check

@tez-yetus

This comment was marked as outdated.

@rbalamohan

Copy link
Copy Markdown
Contributor

Lgtm. +1 on the recent patch with timeout.

@abstractdog

Copy link
Copy Markdown
ContributorAuthor

Lgtm. +1 on the recent patch with timeout.

thanks @rbalamohan , waiting for green tests before merging

@tez-yetus

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 36sDocker mode activated.
_ Prechecks _
+1 💚dupname0m 0sNo case conflicting files found.
+1 💚@author0m 0sThe patch does not contain any @author tags.
+1 💚test4tests0m 0sThe patch appears to include 1 new or modified test files.
_ master Compile Tests _
+0 🆗mvndep6m 0sMaven dependency ordering for branch
+1 💚mvninstall10m 0smaster passed
+1 💚compile1m 18smaster passed with JDK Ubuntu-11.0.18+10-post-Ubuntu-0ubuntu122.04
+1 💚compile1m 12smaster passed with JDK Private Build-1.8.0_362-8u362-ga-0ubuntu1~22.04-b09
+1 💚checkstyle1m 13smaster passed
+1 💚javadoc1m 21smaster passed with JDK Ubuntu-11.0.18+10-post-Ubuntu-0ubuntu122.04
+1 💚javadoc1m 12smaster passed with JDK Private Build-1.8.0_362-8u362-ga-0ubuntu1~22.04-b09
+0 🆗spotbugs1m 16sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs2m 38smaster passed
_ Patch Compile Tests _
+0 🆗mvndep0m 9sMaven dependency ordering for patch
+1 💚mvninstall0m 46sthe patch passed
+1 💚compile0m 52sthe patch passed with JDK Ubuntu-11.0.18+10-post-Ubuntu-0ubuntu122.04
+1 💚javac0m 52sthe patch passed
+1 💚compile0m 43sthe patch passed with JDK Private Build-1.8.0_362-8u362-ga-0ubuntu1~22.04-b09
+1 💚javac0m 43sthe patch passed
+1 💚checkstyle0m 31sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 46sthe patch passed with JDK Ubuntu-11.0.18+10-post-Ubuntu-0ubuntu122.04
+1 💚javadoc0m 45sthe patch passed with JDK Private Build-1.8.0_362-8u362-ga-0ubuntu1~22.04-b09
+1 💚findbugs2m 5sthe patch passed
_ Other Tests _
+1 💚unit2m 14stez-api in the patch passed.
+1 💚unit5m 4stez-dag in the patch passed.
+1 💚asflicense0m 22sThe patch does not generate ASF License warnings.
40m 59s
SubsystemReport/Notes
DockerClientAPI=1.42 ServerAPI=1.42 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-280/8/artifact/out/Dockerfile
GITHUB PR#280
JIRA IssueTEZ-4488
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs checkstyle compile
unameLinux 42a5134d6175 4.15.0-206-generic #217-Ubuntu SMP Fri Feb 3 19:10:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/tez.sh
git revisionmaster / 2fe3c46
Default JavaPrivate Build-1.8.0_362-8u362-ga-0ubuntu1~22.04-b09
Multi-JDK versions/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.18+10-post-Ubuntu-0ubuntu122.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_362-8u362-ga-0ubuntu1~22.04-b09
Test Resultshttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-280/8/testReport/
Max. process+thread count416 (vs. ulimit of 5500)
modulesC: tez-api tez-dag U: .
Console outputhttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-280/8/console
versionsgit=2.34.1 maven=3.6.3 findbugs=3.0.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Change-Id: Ic81998359bd372b47b7e9699382aa2c80b814cae
@abstractdog
abstractdog merged commit 249e017 into apache:masterApr 20, 2023
@tez-yetus

Copy link
Copy Markdown

💔 -1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec0m 37sDocker mode activated.
-1 ❌patch0m 5s#280 does not apply to master. Rebase required? Wrong Branch? See https://cwiki.apache.org/confluence/display/TEZ/How+to+Contribute+to+Tez for help.
SubsystemReport/Notes
DockerClientAPI=1.42 ServerAPI=1.42 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-280/9/artifact/out/Dockerfile
GITHUB PR#280
JIRA IssueTEZ-4488
Console outputhttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-280/9/console
versionsgit=2.34.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

prabhjyotsingh pushed a commit to acceldata-io/tez that referenced this pull request Nov 11, 2024
…t DAG comes (apache#280) (Laszlo Bodor reviewed by Rajesh Balamohan)
(cherry picked from commit 249e017)
prabhjyotsingh pushed a commit to acceldata-io/tez that referenced this pull request Nov 12, 2024
…t DAG comes (apache#280) (Laszlo Bodor reviewed by Rajesh Balamohan)
(cherry picked from commit 249e017)
prabhjyotsingh pushed a commit to acceldata-io/tez that referenced this pull request Nov 12, 2024
…t DAG comes (apache#280) (Laszlo Bodor reviewed by Rajesh Balamohan)
(cherry picked from commit 249e017)
(cherry picked from commit 41343dc)
prabhjyotsingh pushed a commit to acceldata-io/tez that referenced this pull request Nov 12, 2024
…t DAG comes (apache#280) (Laszlo Bodor reviewed by Rajesh Balamohan)
(cherry picked from commit 249e017)
(cherry picked from commit 41343dc)
prabhjyotsingh pushed a commit to acceldata-io/tez that referenced this pull request Nov 12, 2024
…t DAG comes (apache#280) (Laszlo Bodor reviewed by Rajesh Balamohan)
(cherry picked from commit 249e017)
(cherry picked from commit 41343dc)
prabhjyotsingh pushed a commit to acceldata-io/tez that referenced this pull request Nov 12, 2024
…t DAG comes (apache#280) (Laszlo Bodor reviewed by Rajesh Balamohan)
(cherry picked from commit 249e017)
(cherry picked from commit 41343dc)
prabhjyotsingh pushed a commit to acceldata-io/tez that referenced this pull request Nov 12, 2024
…t DAG comes (apache#280) (Laszlo Bodor reviewed by Rajesh Balamohan)
(cherry picked from commit 249e017)
(cherry picked from commit 41343dc)
prabhjyotsingh pushed a commit to acceldata-io/tez that referenced this pull request Nov 20, 2024
…t DAG comes (apache#280) (Laszlo Bodor reviewed by Rajesh Balamohan)
(cherry picked from commit 249e017)
(cherry picked from commit 41343dc)
(cherry picked from commit 6d81766)
prabhjyotsingh added a commit to acceldata-io/tez that referenced this pull request Nov 20, 2024
…n the first DAG comes (apache#280) (Laszlo Bodor reviewed by Rajesh Balamohan) (#23)
(cherry picked from commit 249e017)
(cherry picked from commit 41343dc)
(cherry picked from commit 6d81766)
Co-authored-by: Bodor Laszlo <bodorlaszlo0202@gmail.com>
shubhluck pushed a commit to acceldata-io/tez that referenced this pull request Nov 21, 2024
…n the first DAG comes (apache#280) (Laszlo Bodor reviewed by Rajesh Balamohan) (#23)
(cherry picked from commit 249e017)
(cherry picked from commit 41343dc)
(cherry picked from commit 6d81766)
Co-authored-by: Bodor Laszlo <bodorlaszlo0202@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@abstractdog@tez-yetus@rbalamohan