YARN-9400. Remove unnecessary if at EntityGroupFSTimelineStore#parseApplicationId. Contributed by Prabhu Joseph.
This commit is contained in:
parent
b939ae98e6
commit
f4d6e82075
@ -549,15 +549,11 @@ private static boolean shouldCleanAppLogDir(Path appLogPath, long now,
|
|||||||
|
|
||||||
// converts the String to an ApplicationId or null if conversion failed
|
// converts the String to an ApplicationId or null if conversion failed
|
||||||
private static ApplicationId parseApplicationId(String appIdStr) {
|
private static ApplicationId parseApplicationId(String appIdStr) {
|
||||||
ApplicationId appId = null;
|
try {
|
||||||
if (appIdStr.startsWith(ApplicationId.appIdStrPrefix)) {
|
return ApplicationId.fromString(appIdStr);
|
||||||
try {
|
} catch (IllegalArgumentException e) {
|
||||||
appId = ApplicationId.fromString(appIdStr);
|
return null;
|
||||||
} catch (IllegalArgumentException e) {
|
|
||||||
appId = null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return appId;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static ClassLoader createPluginClassLoader(
|
private static ClassLoader createPluginClassLoader(
|
||||||
|
Loading…
Reference in New Issue
Block a user