mridulm commented on a change in pull request #34079:
URL: https://github.com/apache/spark/pull/34079#discussion_r715009324
##########
File path:
common/network-yarn/src/main/java/org/apache/spark/network/yarn/YarnShuffleService.java
##########
@@ -93,7 +93,7 @@
* This {@code classpath} configuration is only supported on YARN versions >=
2.9.0.
*/
public class YarnShuffleService extends AuxiliaryService {
- private static final Logger logger =
LoggerFactory.getLogger(YarnShuffleService.class);
+ private static final Logger logger = null;
Review comment:
This should not be `static` or `final` ?
##########
File path:
common/network-yarn/src/main/java/org/apache/spark/network/yarn/YarnShuffleService.java
##########
@@ -284,7 +293,9 @@ static MergedShuffleFileManager
newMergedShuffleFileManagerInstance(TransportCon
// will also need the transport configuration.
return
mergeManagerSubClazz.getConstructor(TransportConf.class).newInstance(conf);
} catch (Exception e) {
- logger.error("Unable to create an instance of {}",
mergeManagerImplClassName);
+ if(logger != null) {
+ logger.error("Unable to create an instance of {}",
mergeManagerImplClassName);
+ }
Review comment:
When can this be `null` ?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]