YARN-11554. Fix TestRMFailover#testWebAppProxyInStandAloneMode Failed.#5971
YARN-11554. Fix TestRMFailover#testWebAppProxyInStandAloneMode Failed.#5971goiri merged 3 commits intoapache:trunkfrom
Conversation
|
🎊 +1 overall
This message was automatically generated. |
| public void testWebAppProxyInStandAloneMode() throws YarnException, | ||
| InterruptedException, IOException { | ||
| conf.setBoolean(YarnConfiguration.AUTO_FAILOVER_ENABLED, false); | ||
| if (HAUtil.isHAEnabled(conf)) { |
There was a problem hiding this comment.
HAUtil.isHAEnabled() is always true, since it is set in the setup of this test here: https://github.com/apache/hadoop/blob/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/TestRMFailover.java#L88
Can you remove the check.
There was a problem hiding this comment.
Thanks for your suggestion! I will remove if (HAUtil.isHAEnabled(conf)).
|
🎊 +1 overall
This message was automatically generated. |
simbadzina
left a comment
There was a problem hiding this comment.
LGTM. Just one unused import to fix.
| import org.apache.hadoop.util.ExitUtil; | ||
| import org.apache.hadoop.yarn.api.records.ApplicationId; | ||
| import org.apache.hadoop.yarn.client.api.YarnClient; | ||
| import org.apache.hadoop.yarn.conf.HAUtil; |
There was a problem hiding this comment.
Thank you for helping the review code! I will improve the code.
|
🎊 +1 overall
This message was automatically generated. |
|
@goiri Thank you very much for your help in reviewing the code! |
Description of PR
JIRA: YARN-11554. Fix TestRMFailover#testWebAppProxyInStandAloneMode Failed.
How was this patch tested?
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?