LuciferYang commented on code in PR #37938: URL: https://github.com/apache/spark/pull/37938#discussion_r974854247
########## common/network-yarn/src/main/java/org/apache/spark/network/yarn/YarnShuffleService.java: ########## @@ -237,6 +241,10 @@ protected void serviceInit(Configuration externalConf) throws Exception { boolean stopOnFailure = _conf.getBoolean(STOP_ON_FAILURE_KEY, DEFAULT_STOP_ON_FAILURE); + if (_recoveryPath == null && _conf.getBoolean(INTEGRATION_TESTING, false)) { Review Comment: Use Utils.isTesting directly need fix some other cases, for example: ``` test("recovery db should not be created if NM recovery is not enabled") { s1 = new YarnShuffleService s1.init(yarnConfig) s1._recoveryPath should be (null) s1.registeredExecutorFile should be (null) s1.secretsFile should be (null) } ``` Is it better to use a separate configuration as this pr? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org