Skip to content

TEZ-4689: Introduce Node abstraction for DAGAppMaster instead of sepagrate NodeManager-related fields#461

Open
Aggarwal-Raghav wants to merge 1 commit intoapache:masterfrom
Aggarwal-Raghav:TEZ-4689
Open

TEZ-4689: Introduce Node abstraction for DAGAppMaster instead of sepagrate NodeManager-related fields#461
Aggarwal-Raghav wants to merge 1 commit intoapache:masterfrom
Aggarwal-Raghav:TEZ-4689

Conversation

@Aggarwal-Raghav
Copy link
Contributor

No description provided.

private final int nmPort;
private final int nmHttpPort;
private String nmHost;
private int nmPort;
Copy link
Contributor Author

@Aggarwal-Raghav Aggarwal-Raghav Feb 27, 2026

Choose a reason for hiding this comment

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

nmPort is not used anywhere but still keeping getAppNMPort() public api

if (!isLocal) {
this.nmHost = nodeContext.getNodeHostString();
int nmHttpPort = Integer.parseInt(nodeContext.getNodeHttpPortString());
this.containerLogs =
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this.containerLogs is making use of nmHttpPort and nmHost, moved it from constructor to serviceInit() and made nmHttpPort as local variable

DAGProtos.ConfigurationProto confProto = amExtensions.loadConfigurationProto();
TezUtilsInternal.addUserSpecifiedTezConfiguration(conf, confProto.getConfKeyValuesList());

NodeContext nodeContext = new YarnNodeManagerContext();
Copy link
Contributor Author

@Aggarwal-Raghav Aggarwal-Raghav Feb 27, 2026

Choose a reason for hiding this comment

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

I don't think we need to wrap in if statement for checking if framework is yarn. As the YarnNodeManagerContext is using supplier it won't be evaluated immediately and evaluation will happen only it !isLocal.
NOTE: in tez-am docker image tez.local.mode = true

@tez-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 5m 12s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 4 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 8m 59s master passed
+1 💚 compile 0m 29s master passed
+1 💚 checkstyle 0m 51s master passed
+1 💚 javadoc 0m 28s master passed
+0 🆗 spotbugs 1m 39s tez-dag in master has 749 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 0m 20s the patch passed
+1 💚 codespell 0m 26s No new issues.
+1 💚 compile 0m 19s the patch passed
+1 💚 javac 0m 19s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 0m 5s /buildtool-patch-checkstyle-tez-dag.txt The patch fails to run checkstyle in tez-dag
+1 💚 javadoc 0m 9s the patch passed
+1 💚 spotbugs 0m 59s the patch passed
_ Other Tests _
-1 ❌ unit 31m 51s /patch-unit-tez-dag.txt tez-dag in the patch passed.
+1 💚 asflicense 0m 10s The patch does not generate ASF License warnings.
52m 49s
Reason Tests
Failed junit tests tez.dag.app.TestMockDAGAppMaster
tez.dag.app.TestPreemption
Subsystem Report/Notes
Docker ClientAPI=1.53 ServerAPI=1.53 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-461/2/artifact/out/Dockerfile
GITHUB PR #461
Optional Tests dupname asflicense javac javadoc unit spotbugs checkstyle codespell detsecrets compile
uname Linux 1a74054354dc 5.15.0-141-generic #151-Ubuntu SMP Sun May 18 21:35:19 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-home/workspace/tez-multibranch_PR-461/src/.yetus/personality.sh
git revision master / fca17d7
Default Java Ubuntu-21.0.10+7-Ubuntu-124.04
Test Results https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-461/2/testReport/
Max. process+thread count 338 (vs. ulimit of 5500)
modules C: tez-dag U: tez-dag
Console output https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-461/2/console
versions git=2.43.0 maven=3.8.7 spotbugs=4.9.3 codespell=2.4.1
Powered by Apache Yetus 0.15.1 https://yetus.apache.org

This message was automatically generated.

@tez-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 7m 29s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 4 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 11m 26s master passed
+1 💚 compile 0m 44s master passed
+1 💚 checkstyle 1m 5s master passed
+1 💚 javadoc 0m 35s master passed
+0 🆗 spotbugs 2m 24s tez-dag in master has 749 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 0m 33s the patch passed
+1 💚 codespell 0m 52s No new issues.
+1 💚 compile 0m 32s the patch passed
+1 💚 javac 0m 32s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 0m 10s /buildtool-patch-checkstyle-tez-dag.txt The patch fails to run checkstyle in tez-dag
+1 💚 javadoc 0m 13s the patch passed
+1 💚 spotbugs 1m 51s the patch passed
_ Other Tests _
-1 ❌ unit 32m 34s /patch-unit-tez-dag.txt tez-dag in the patch passed.
+1 💚 asflicense 0m 13s The patch does not generate ASF License warnings.
62m 5s
Reason Tests
Failed junit tests tez.dag.app.TestMockDAGAppMaster
tez.dag.app.TestPreemption
Subsystem Report/Notes
Docker ClientAPI=1.53 ServerAPI=1.53 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-461/1/artifact/out/Dockerfile
GITHUB PR #461
Optional Tests dupname asflicense javac javadoc unit spotbugs checkstyle codespell detsecrets compile
uname Linux 3be9a8f46386 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-home/workspace/tez-multibranch_PR-461/src/.yetus/personality.sh
git revision master / fca17d7
Default Java Ubuntu-21.0.10+7-Ubuntu-124.04
Test Results https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-461/1/testReport/
Max. process+thread count 337 (vs. ulimit of 5500)
modules C: tez-dag U: tez-dag
Console output https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-461/1/console
versions git=2.43.0 maven=3.8.7 spotbugs=4.9.3 codespell=2.4.1
Powered by Apache Yetus 0.15.1 https://yetus.apache.org

This message was automatically generated.

TezConfiguration.TEZ_LOCAL_MODE_DEFAULT);

if (!isLocal) {
this.nmHost = nodeContext.getNodeHostString();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change is causing UT failues in TestMockDAGAppMaster.java because

report.setHost(dagAppMaster.getAppNMHost());
is null post this change i.e. moving nmHost outside constructor. Working on fix...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed. tested on local.

@Aggarwal-Raghav Aggarwal-Raghav marked this pull request as ready for review February 28, 2026 17:13
@tez-yetus
Copy link

🎊 +1 overall

Vote Subsystem Runtime Logfile Comment
+0 🆗 reexec 0m 15s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+0 🆗 detsecrets 0m 0s detect-secrets was not available.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
+1 💚 test4tests 0m 0s The patch appears to include 4 new or modified test files.
_ master Compile Tests _
+1 💚 mvninstall 11m 18s master passed
+1 💚 compile 0m 46s master passed
+1 💚 checkstyle 1m 9s master passed
+1 💚 javadoc 0m 36s master passed
+0 🆗 spotbugs 2m 23s tez-dag in master has 749 extant spotbugs warnings.
_ Patch Compile Tests _
+1 💚 mvninstall 0m 33s the patch passed
+1 💚 codespell 0m 51s No new issues.
+1 💚 compile 0m 32s the patch passed
+1 💚 javac 0m 32s the patch passed
+1 💚 blanks 0m 0s The patch has no blanks issues.
-0 ⚠️ checkstyle 0m 11s /buildtool-patch-checkstyle-tez-dag.txt The patch fails to run checkstyle in tez-dag
+1 💚 javadoc 0m 14s the patch passed
+1 💚 spotbugs 1m 42s the patch passed
_ Other Tests _
+1 💚 unit 5m 48s tez-dag in the patch passed.
+1 💚 asflicense 0m 13s The patch does not generate ASF License warnings.
27m 47s
Subsystem Report/Notes
Docker ClientAPI=1.53 ServerAPI=1.53 base: https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-461/3/artifact/out/Dockerfile
GITHUB PR #461
Optional Tests dupname asflicense javac javadoc unit spotbugs checkstyle codespell detsecrets compile
uname Linux f93f5f41eba8 5.15.0-160-generic #170-Ubuntu SMP Wed Oct 1 10:06:56 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality /home/jenkins/jenkins-home/workspace/tez-multibranch_PR-461/src/.yetus/personality.sh
git revision master / 5e12682
Default Java Ubuntu-21.0.10+7-Ubuntu-124.04
Test Results https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-461/3/testReport/
Max. process+thread count 219 (vs. ulimit of 5500)
modules C: tez-dag U: tez-dag
Console output https://ci-hadoop.apache.org/job/tez-multibranch/job/PR-461/3/console
versions git=2.43.0 maven=3.8.7 spotbugs=4.9.3 codespell=2.4.1
Powered by Apache Yetus 0.15.1 https://yetus.apache.org

This message was automatically generated.

Sign up for free to 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.

2 participants