Skip to content

TEZ-4441: TezAppMaster may stuck because of reportError skip send err… - #236

Merged
abstractdog merged 3 commits into
apache:masterfrom
zhengchenyu:TEZ-4441
Aug 29, 2022
Merged

TEZ-4441: TezAppMaster may stuck because of reportError skip send err…#236
abstractdog merged 3 commits into
apache:masterfrom
zhengchenyu:TEZ-4441

Conversation

@zhengchenyu

Copy link
Copy Markdown
Contributor

@tez-yetus

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec34m 23sDocker 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 2 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall15m 8smaster passed
+1 💚compile0m 54smaster passed with JDK Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04
+1 💚compile0m 47smaster passed with JDK Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07
+1 💚checkstyle1m 28smaster passed
+1 💚javadoc1m 1smaster passed with JDK Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04
+1 💚javadoc1m 12smaster passed with JDK Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07
+0 🆗spotbugs1m 56sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs1m 54smaster passed
_ Patch Compile Tests _
+1 💚mvninstall0m 30sthe patch passed
+1 💚compile0m 33sthe patch passed with JDK Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04
+1 💚javac0m 33sthe patch passed
+1 💚compile0m 30sthe patch passed with JDK Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07
+1 💚javac0m 30sthe patch passed
-0 ⚠️checkstyle0m 22stez-dag: The patch generated 4 new + 112 unchanged - 1 fixed = 116 total (was 113)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 27sthe patch passed with JDK Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04
+1 💚javadoc0m 26sthe patch passed with JDK Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07
+1 💚findbugs1m 21sthe patch passed
_ Other Tests _
+1 💚unit5m 35stez-dag in the patch passed.
+1 💚asflicense0m 16sThe patch does not generate ASF License warnings.
67m 47s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-236/1/artifact/out/Dockerfile
GITHUB PR#236
JIRA IssueTEZ-4441
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs checkstyle compile
unameLinux 64cf49206596 4.15.0-169-generic #177-Ubuntu SMP Thu Feb 3 10:50:38 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/tez.sh
git revisionmaster / 621a831
Default JavaPrivate Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07
Multi-JDK versions/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07
checkstylehttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-236/1/artifact/out/diff-checkstyle-tez-dag.txt
Test Resultshttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-236/1/testReport/
Max. process+thread count217 (vs. ulimit of 5500)
modulesC: tez-dag U: tez-dag
Console outputhttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-236/1/console
versionsgit=2.25.1 maven=3.6.3 findbugs=3.0.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Utils.getTaskSchedulerIdentifierString(taskSchedulerIndex, appContext) + ": " +
diagnostics);
if (taskSchedulerDescriptors[taskSchedulerIndex].getClassName().equals(yarnSchedulerClassName)) {
if (taskSchedulerDescriptors[taskSchedulerIndex].getEntityName()

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.

I guess this is the actual fix

just a note, what are the values in your case:

taskSchedulerDescriptors[taskSchedulerIndex].getClassName()
yarnSchedulerClassName
taskSchedulerDescriptors[taskSchedulerIndex].getEntityName()

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Yes, this is the only actual fix.

  • Before this PR
methodreturn value
taskSchedulerDescriptors[taskSchedulerIndex].getClassName()null
yarnSchedulerClassName"org.apache.tez.dag.app.rm.YarnTaskSchedulerService"

taskSchedulerDescriptors[taskSchedulerIndex].getClassName() is set from the variable 'taskSchedulerDescriptors' of DAGAppMaster::serviceInit. In DAGAppMaster::parsePlugin, when we construct NamedEntityDescriptor for tez yarn plugin, the className is all null.

yarnSchedulerClassName is set from tez.am.yarn.scheduler.class, default value is "org.apache.tez.dag.app.rm.YarnTaskSchedulerService".

So for tez yarn plugin, taskSchedulerDescriptors[taskSchedulerIndex].getClassName() will never equals to yarnSchedulerClassName. Then

  • After this PR
taskSchedulerDescriptors[taskSchedulerIndex].getEntityName() will return "TezYarn"

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.

I see, nice catch:

TezConstants.getTezYarnServicePluginName(), null).setUserPayload(defaultPayload);

we simply don't fill the classname, so we should not rely on it, only use it in case of createCustomTaskScheduler

@tez-yetus

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec37m 24sDocker 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 2 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall15m 34smaster passed
+1 💚compile1m 0smaster passed with JDK Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04
+1 💚compile0m 49smaster passed with JDK Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07
+1 💚checkstyle1m 22smaster passed
+1 💚javadoc0m 56smaster passed with JDK Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04
+1 💚javadoc0m 50smaster passed with JDK Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07
+0 🆗spotbugs1m 54sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs1m 52smaster passed
_ Patch Compile Tests _
+1 💚mvninstall0m 29sthe patch passed
+1 💚compile0m 34sthe patch passed with JDK Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04
+1 💚javac0m 34sthe patch passed
+1 💚compile0m 30sthe patch passed with JDK Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07
+1 💚javac0m 29sthe patch passed
-0 ⚠️checkstyle0m 24stez-dag: The patch generated 4 new + 112 unchanged - 1 fixed = 116 total (was 113)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 28sthe patch passed with JDK Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04
+1 💚javadoc0m 28sthe patch passed with JDK Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07
+1 💚findbugs1m 23sthe patch passed
_ Other Tests _
+1 💚unit5m 35stez-dag in the patch passed.
+1 💚asflicense0m 16sThe patch does not generate ASF License warnings.
70m 52s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-236/2/artifact/out/Dockerfile
GITHUB PR#236
JIRA IssueTEZ-4441
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs checkstyle compile
unameLinux 4d56a61e7e30 4.15.0-191-generic #202-Ubuntu SMP Thu Aug 4 01:49:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/tez.sh
git revisionmaster / 621a831
Default JavaPrivate Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07
Multi-JDK versions/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07
checkstylehttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-236/2/artifact/out/diff-checkstyle-tez-dag.txt
Test Resultshttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-236/2/testReport/
Max. process+thread count253 (vs. ulimit of 5500)
modulesC: tez-dag U: tez-dag
Console outputhttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-236/2/console
versionsgit=2.25.1 maven=3.6.3 findbugs=3.0.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@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 2 new or modified test files.
_ master Compile Tests _
+1 💚mvninstall15m 29smaster passed
+1 💚compile1m 2smaster passed with JDK Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04
+1 💚compile0m 50smaster passed with JDK Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07
+1 💚checkstyle1m 20smaster passed
+1 💚javadoc0m 58smaster passed with JDK Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04
+1 💚javadoc0m 50smaster passed with JDK Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07
+0 🆗spotbugs1m 59sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs1m 57smaster passed
_ Patch Compile Tests _
+1 💚mvninstall0m 30sthe patch passed
+1 💚compile0m 34sthe patch passed with JDK Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04
+1 💚javac0m 34sthe patch passed
+1 💚compile0m 29sthe patch passed with JDK Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07
+1 💚javac0m 29sthe patch passed
-0 ⚠️checkstyle0m 25stez-dag: The patch generated 1 new + 112 unchanged - 1 fixed = 113 total (was 113)
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 27sthe patch passed with JDK Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04
+1 💚javadoc0m 27sthe patch passed with JDK Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07
+1 💚findbugs1m 23sthe patch passed
_ Other Tests _
+1 💚unit5m 32stez-dag in the patch passed.
+1 💚asflicense0m 16sThe patch does not generate ASF License warnings.
34m 11s
SubsystemReport/Notes
DockerClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-236/3/artifact/out/Dockerfile
GITHUB PR#236
JIRA IssueTEZ-4441
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs checkstyle compile
unameLinux 5ed386eed7be 4.15.0-191-generic #202-Ubuntu SMP Thu Aug 4 01:49:29 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/tez.sh
git revisionmaster / 621a831
Default JavaPrivate Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07
Multi-JDK versions/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.16+8-post-Ubuntu-0ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_342-8u342-b07-0ubuntu1~20.04-b07
checkstylehttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-236/3/artifact/out/diff-checkstyle-tez-dag.txt
Test Resultshttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-236/3/testReport/
Max. process+thread count255 (vs. ulimit of 5500)
modulesC: tez-dag U: tez-dag
Console outputhttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-236/3/console
versionsgit=2.25.1 maven=3.6.3 findbugs=3.0.1
Powered byApache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@abstractdog
abstractdog merged commit 55b6031 into apache:masterAug 29, 2022
asfgit pushed a commit that referenced this pull request Aug 29, 2022
…or event (#236) (zhengchenyu reviewed by Laszlo Bodor)
udaynpusa pushed a commit to mapr/tez that referenced this pull request Jan 30, 2024
…or event (apache#236) (zhengchenyu reviewed by Laszlo Bodor)
(cherry picked from commit 55b6031)
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

@zhengchenyu@tez-yetus@abstractdog