Skip to content

TEZ-4565. TestAnalyzer subtest testInternalPreemption is flaky - #357

Merged
abstractdog merged 2 commits into
apache:masterfrom
jteagles:TEZ-4565
Jul 29, 2025
Merged

TEZ-4565. TestAnalyzer subtest testInternalPreemption is flaky#357
abstractdog merged 2 commits into
apache:masterfrom
jteagles:TEZ-4565

Conversation

@jteagles

Copy link
Copy Markdown
Contributor

Occasionally, attempt comes back as 000001_2 and doesn't match

@jteagles

Copy link
Copy Markdown
ContributorAuthor

This is just a test patch to induce the flaky test

@tez-yetus

This comment was marked as outdated.

@jteagles

Copy link
Copy Markdown
ContributorAuthor

Second commit is try to fix the flaky test

@tez-yetus

Copy link
Copy Markdown

🎊 +1 overall

VoteSubsystemRuntimeComment
+0 🆗reexec23m 11sDocker 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 _
+1 💚mvninstall15m 2smaster passed
+1 💚compile0m 27smaster passed with JDK Ubuntu-11.0.22+7-post-Ubuntu-0ubuntu222.04.1
+1 💚compile0m 26smaster passed with JDK Private Build-1.8.0_402-8u402-ga-2ubuntu1~22.04-b06
+1 💚checkstyle1m 12smaster passed
+1 💚javadoc0m 33smaster passed with JDK Ubuntu-11.0.22+7-post-Ubuntu-0ubuntu222.04.1
+1 💚javadoc0m 18smaster passed with JDK Private Build-1.8.0_402-8u402-ga-2ubuntu1~22.04-b06
+0 🆗spotbugs1m 27sUsed deprecated FindBugs config; considering switching to SpotBugs.
+1 💚findbugs1m 26smaster passed
_ Patch Compile Tests _
+1 💚mvninstall0m 29sthe patch passed
+1 💚compile0m 20sthe patch passed with JDK Ubuntu-11.0.22+7-post-Ubuntu-0ubuntu222.04.1
+1 💚javac0m 20sthe patch passed
+1 💚compile0m 20sthe patch passed with JDK Private Build-1.8.0_402-8u402-ga-2ubuntu1~22.04-b06
+1 💚javac0m 20sthe patch passed
+1 💚checkstyle0m 11sthe patch passed
+1 💚whitespace0m 0sThe patch has no whitespace issues.
+1 💚javadoc0m 8sthe patch passed with JDK Ubuntu-11.0.22+7-post-Ubuntu-0ubuntu222.04.1
+1 💚javadoc0m 10sthe patch passed with JDK Private Build-1.8.0_402-8u402-ga-2ubuntu1~22.04-b06
+1 💚findbugs1m 12sthe patch passed
_ Other Tests _
+1 💚unit2m 50sjob-analyzer in the patch passed.
+1 💚asflicense0m 17sThe patch does not generate ASF License warnings.
49m 35s
SubsystemReport/Notes
DockerClientAPI=1.44 ServerAPI=1.44 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-357/2/artifact/out/Dockerfile
GITHUB PR#357
Optional Testsdupname asflicense javac javadoc unit spotbugs findbugs checkstyle compile
unameLinux 44860714a0db 5.15.0-94-generic #104-Ubuntu SMP Tue Jan 9 15:25:40 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
Build toolmaven
Personalitypersonality/tez.sh
git revisionmaster / a1fcddb
Default JavaPrivate Build-1.8.0_402-8u402-ga-2ubuntu1~22.04-b06
Multi-JDK versions/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.22+7-post-Ubuntu-0ubuntu222.04.1 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_402-8u402-ga-2ubuntu1~22.04-b06
Test Resultshttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-357/2/testReport/
Max. process+thread count892 (vs. ulimit of 5500)
modulesC: tez-tools/analyzers/job-analyzer U: tez-tools/analyzers/job-analyzer
Console outputhttps://ci-hadoop.apache.org/job/tez-multibranch/job/PR-357/2/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.

@jteagles
jteagles requested a review from abstractdogMay 17, 2024 00:51
@jteagles

Copy link
Copy Markdown
ContributorAuthor

@abstractdog , left this as two commits so you can see the first failed and the second succeeds. Will need squash and merge.

@abstractdog

abstractdog commented May 17, 2024

Copy link
Copy Markdown
Contributor

I'm actually fine with the patch, however, I'm a bit struggling to understand the cause
this unit test looks like describing an exact scenario (see comment above testInternalPreemption), however the underlying taskattempt ids look like a mess to me :)
I mean, the current state without the patch is:

 createStep("v1 : 00000[01]_0", CriticalPathDependency.INIT_DEPENDENCY),
createStep("v2 : 00000[01]_0", CriticalPathDependency.DATA_DEPENDENCY),
createStep("v3 : 000000_0", CriticalPathDependency.DATA_DEPENDENCY, TaskAttemptTerminationCause.INTERNAL_PREEMPTION, null),
createStep("v2 : 00000[01]_1", CriticalPathDependency.OUTPUT_RECREATE_DEPENDENCY),
createStep("v1 : 000000_1", CriticalPathDependency.OUTPUT_RECREATE_DEPENDENCY,
null, Collections.singletonList("preemption of v3")),
createStep("v2 : 00000[01]_1", CriticalPathDependency.DATA_DEPENDENCY),
createStep("v3 : 000000_1", CriticalPathDependency.DATA_DEPENDENCY)

this PR modifies the third occurrence of v2 to 00000[01]_[12], so if it's just sometimes 000001_2, and is 000001_1 for the rest, then the second occurrence of v2 is also weird: 00000[01]_1, so it's the same task attempt id (1)?...
is it possible?
do all of the scenarios make sense and test what we expect?

@abstractdog

Copy link
Copy Markdown
Contributor

@jteagles: unfortunately, TestAnalyzer is still flaky, is there a chance you can respond to my question above and whether we can merge this fix? it would be awesome to clean this test
thanks in advance!

@abstractdog

Copy link
Copy Markdown
Contributor

@abstractdogabstractdog left a comment

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.

+1

@abstractdog
abstractdog merged commit adf258b into apache:masterJul 29, 2025
Asmoday pushed a commit to arenadata/tez that referenced this pull request Apr 20, 2026
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

@jteagles@tez-yetus@abstractdog