@@ -534,7 +534,8 @@ public void testAMCommandOpts() {
534534 TezClientUtils .constructAMLaunchOpts (tezConf , Resource .newInstance (1024 , 1 ));
535535 assertEquals (tmpOpts + " "
536536 + TezConfiguration .TEZ_AM_LAUNCH_CLUSTER_DEFAULT_CMD_OPTS_DEFAULT + " "
537- + amCommandOpts ,
537+ + amCommandOpts
538+ + TezConfiguration .TEZ_AM_LAUNCH_CLUSTER_JDK17_CMD_OPTS_DEFAULT ,
538539 amOptsConstructed );
539540
540541 // Test2: Setup cluster-default command opts explicitly
@@ -543,7 +544,8 @@ public void testAMCommandOpts() {
543544 tezConf .set (TezConfiguration .TEZ_AM_LAUNCH_CLUSTER_DEFAULT_CMD_OPTS , clusterDefaultCommandOpts );
544545 amOptsConstructed =
545546 TezClientUtils .constructAMLaunchOpts (tezConf , Resource .newInstance (1024 , 1 ));
546- assertEquals (tmpOpts + " " + clusterDefaultCommandOpts + " " + amCommandOpts , amOptsConstructed );
547+ assertEquals (tmpOpts + " " + clusterDefaultCommandOpts + " " + amCommandOpts
548+ + TezConfiguration .TEZ_AM_LAUNCH_CLUSTER_JDK17_CMD_OPTS_DEFAULT , amOptsConstructed );
547549
548550
549551 // Test3: Don't setup Xmx explicitly
@@ -555,7 +557,7 @@ public void testAMCommandOpts() {
555557 // It's OK for the Xmx value to show up before cluster default options, since Xmx will not be replaced if it already exists.
556558 assertEquals (
557559 " -Xmx" + ((int ) (1024 * factor )) + "m" + " " + tmpOpts + " " + clusterDefaultCommandOpts + " " +
558- amCommandOpts ,
560+ amCommandOpts + TezConfiguration . TEZ_AM_LAUNCH_CLUSTER_JDK17_CMD_OPTS_DEFAULT ,
559561 amOptsConstructed );
560562
561563 // Test4: Ensure admin options with Xmx does not cause them to be overridden. This should almost never be done though.
@@ -564,7 +566,8 @@ public void testAMCommandOpts() {
564566 tezConf .set (TezConfiguration .TEZ_AM_LAUNCH_CLUSTER_DEFAULT_CMD_OPTS , clusterDefaultCommandOpts );
565567 amOptsConstructed =
566568 TezClientUtils .constructAMLaunchOpts (tezConf , Resource .newInstance (1024 , 1 ));
567- assertEquals (tmpOpts + " " + clusterDefaultCommandOpts + " " + amCommandOpts , amOptsConstructed );
569+ assertEquals (tmpOpts + " " + clusterDefaultCommandOpts + " " + amCommandOpts
570+ + TezConfiguration .TEZ_AM_LAUNCH_CLUSTER_JDK17_CMD_OPTS_DEFAULT , amOptsConstructed );
568571 }
569572
570573 @ Test (timeout = 5000 )
0 commit comments