From 4c5a7cc6fcaaf672abb53cc979e62d2ae2524831 Mon Sep 17 00:00:00 2001 From: slfan1989 <55643692+slfan1989@users.noreply.github.com> Date: Wed, 21 Sep 2022 11:10:09 +0800 Subject: [PATCH] YARN-11307. Fix Yarn Router Broken Link. (#4905) --- .../webapp/TestRouterWebServicesREST.java | 68 +++++++++++-------- 1 file changed, 38 insertions(+), 30 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/webapp/TestRouterWebServicesREST.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/webapp/TestRouterWebServicesREST.java index 1e6d331bdc3..7eb17ef6cd2 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/webapp/TestRouterWebServicesREST.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/webapp/TestRouterWebServicesREST.java @@ -78,6 +78,7 @@ import java.security.PrivilegedExceptionAction; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; +import java.util.Set; import java.util.concurrent.Callable; import java.util.concurrent.CompletionService; import java.util.concurrent.ExecutorCompletionService; @@ -493,7 +494,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#updateNodeResources()} inside Router. + * {@link RMWebServiceProtocol#updateNodeResource} inside Router. */ @Test public void testUpdateNodeResource() throws Exception { @@ -552,7 +553,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#getAppActivities()} inside Router. + * {@link RMWebServiceProtocol#getAppActivities} inside Router. */ @Test(timeout = 2000) public void testAppActivitiesXML() throws Exception { @@ -572,7 +573,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#getAppStatistics()} inside Router. + * {@link RMWebServiceProtocol#getAppStatistics} inside Router. */ @Test(timeout = 2000) public void testAppStatisticsXML() throws Exception { @@ -596,7 +597,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#dumpSchedulerLogs()} inside Router. + * {@link RMWebServiceProtocol#dumpSchedulerLogs} inside Router. */ @Test(timeout = 2000) public void testDumpSchedulerLogsXML() throws Exception { @@ -619,7 +620,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#createNewApplication()} inside Router. + * {@link RMWebServiceProtocol#createNewApplication} inside Router. */ @Test(timeout = 2000) public void testNewApplicationXML() throws Exception { @@ -643,7 +644,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#submitApplication()} inside Router. + * {@link RMWebServiceProtocol#submitApplication} inside Router. */ @Test(timeout = 2000) public void testSubmitApplicationXML() throws Exception { @@ -669,7 +670,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#getApps()} inside Router. + * {@link RMWebServiceProtocol#getApps} inside Router. */ @Test(timeout = 2000) public void testAppsXML() throws Exception { @@ -692,7 +693,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#getApp()} inside Router. + * {@link RMWebServiceProtocol#getApp} inside Router. */ @Test(timeout = 2000) public void testAppXML() throws Exception { @@ -716,7 +717,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#getAppAttempts()} inside Router. + * {@link RMWebServiceProtocol#getAppAttempts} inside Router. */ @Test(timeout = 2000) public void testAppAttemptXML() throws Exception { @@ -740,7 +741,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#getAppState()} inside Router. + * {@link RMWebServiceProtocol#getAppState} inside Router. */ @Test(timeout = 2000) public void testAppStateXML() throws Exception { @@ -764,7 +765,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#updateAppState()} inside Router. + * {@link RMWebServiceProtocol#updateAppState} inside Router. */ @Test(timeout = 2000) public void testUpdateAppStateXML() throws Exception { @@ -792,7 +793,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#getAppPriority()} inside Router. + * {@link RMWebServiceProtocol#getAppPriority} inside Router. */ @Test(timeout = 2000) public void testAppPriorityXML() throws Exception { @@ -814,7 +815,8 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#updateApplicationPriority()} inside Router. + * {@link RMWebServiceProtocol#updateApplicationPriority( + * AppPriority, HttpServletRequest, String)} inside Router. */ @Test(timeout = 2000) public void testUpdateAppPriorityXML() throws Exception { @@ -842,7 +844,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#getAppQueue()} inside Router. + * {@link RMWebServiceProtocol#getAppQueue(HttpServletRequest, String)} inside Router. */ @Test(timeout = 2000) public void testAppQueueXML() throws Exception { @@ -864,7 +866,8 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#updateAppQueue()} inside Router. + * {@link RMWebServiceProtocol#updateAppQueue(AppQueue, HttpServletRequest, String)} + * inside Router. */ @Test(timeout = 2000) public void testUpdateAppQueueXML() throws Exception { @@ -892,7 +895,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#getAppTimeouts()} inside Router. + * {@link RMWebServiceProtocol#getAppTimeouts} inside Router. */ @Test(timeout = 2000) public void testAppTimeoutsXML() throws Exception { @@ -916,7 +919,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#getAppTimeout()} inside Router. + * {@link RMWebServiceProtocol#getAppTimeout} inside Router. */ @Test(timeout = 2000) public void testAppTimeoutXML() throws Exception { @@ -939,7 +942,8 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#updateApplicationTimeout()} inside Router. + * {@link RMWebServiceProtocol#updateApplicationTimeout} + * inside Router. */ @Test(timeout = 2000) public void testUpdateAppTimeoutsXML() throws Exception { @@ -967,7 +971,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#createNewReservation()} inside Router. + * {@link RMWebServiceProtocol#createNewReservation(HttpServletRequest)} inside Router. */ @Test(timeout = 2000) public void testNewReservationXML() throws Exception { @@ -991,7 +995,8 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#submitReservation()} inside Router. + * {@link RMWebServiceProtocol#submitReservation( + * ReservationSubmissionRequestInfo, HttpServletRequest)} inside Router. */ @Test(timeout = 2000) public void testSubmitReservationXML() throws Exception { @@ -1019,7 +1024,8 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#updateReservation()} inside Router. + * {@link RMWebServiceProtocol#updateReservation( + * ReservationUpdateRequestInfo, HttpServletRequest)} inside Router. */ @Test(timeout = 2000) public void testUpdateReservationXML() throws Exception { @@ -1045,7 +1051,8 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#deleteReservation()} inside Router. + * {@link RMWebServiceProtocol#deleteReservation( + * ReservationDeleteRequestInfo, HttpServletRequest)} inside Router. */ @Test(timeout = 2000) public void testDeleteReservationXML() throws Exception { @@ -1071,7 +1078,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#getNodeToLabels()} inside Router. + * {@link RMWebServiceProtocol#getNodeToLabels(HttpServletRequest)} inside Router. */ @Test(timeout = 2000) public void testGetNodeToLabelsXML() throws Exception { @@ -1093,7 +1100,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#getClusterNodeLabels()} inside Router. + * {@link RMWebServiceProtocol#getClusterNodeLabels(HttpServletRequest)} inside Router. */ @Test(timeout = 2000) public void testGetClusterNodeLabelsXML() throws Exception { @@ -1115,7 +1122,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#getLabelsOnNode()} inside Router. + * {@link RMWebServiceProtocol#getLabelsOnNode(HttpServletRequest, String)} inside Router. */ @Test(timeout = 2000) public void testGetLabelsOnNodeXML() throws Exception { @@ -1137,7 +1144,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#getLabelsToNodes()} inside Router. + * {@link RMWebServiceProtocol#getLabelsToNodes(Set)} inside Router. */ @Test(timeout = 2000) public void testGetLabelsMappingEmptyXML() throws Exception { @@ -1159,7 +1166,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#getLabelsToNodes()} inside Router. + * {@link RMWebServiceProtocol#getLabelsToNodes(Set)} inside Router. */ @Test(timeout = 2000) public void testGetLabelsMappingXML() throws Exception { @@ -1181,7 +1188,8 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#addToClusterNodeLabels()} inside Router. + * {@link RMWebServiceProtocol#addToClusterNodeLabels( + * NodeLabelsInfo, HttpServletRequest)} inside Router. */ @Test(timeout = 2000) public void testAddToClusterNodeLabelsXML() throws Exception { @@ -1235,7 +1243,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#replaceLabelsOnNodes()} inside Router. + * {@link RMWebServiceProtocol#replaceLabelsOnNodes} inside Router. */ @Test(timeout = 2000) public void testReplaceLabelsOnNodesXML() throws Exception { @@ -1262,7 +1270,7 @@ public class TestRouterWebServicesREST { /** * This test validates the correctness of - * {@link RMWebServiceProtocol#replaceLabelsOnNode()} inside Router. + * {@link RMWebServiceProtocol#replaceLabelsOnNode} inside Router. */ @Test(timeout = 2000) public void testReplaceLabelsOnNodeXML() throws Exception {