YARN-3383. AdminService should use warn instead of info to log exception when operation fails. (Li Lu via wangda)

This commit is contained in:
Wangda Tan 2015-03-24 10:33:09 -07:00
parent eda02540ce
commit 97a7277a2d
2 changed files with 4 additions and 1 deletions

View File

@ -103,6 +103,9 @@ Release 2.8.0 - UNRELEASED
YARN-3241. FairScheduler handles "invalid" queue names inconsistently. YARN-3241. FairScheduler handles "invalid" queue names inconsistently.
(Zhihai Xu via kasha) (Zhihai Xu via kasha)
YARN-3383. AdminService should use "warn" instead of "info" to log exception
when operation fails. (Li Lu via wangda)
Release 2.7.0 - UNRELEASED Release 2.7.0 - UNRELEASED
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -699,7 +699,7 @@ private void checkRMStatus(String user, String argName, String msg)
private YarnException logAndWrapException(Exception exception, String user, private YarnException logAndWrapException(Exception exception, String user,
String argName, String msg) throws YarnException { String argName, String msg) throws YarnException {
LOG.info("Exception " + msg, exception); LOG.warn("Exception " + msg, exception);
RMAuditLogger.logFailure(user, argName, "", RMAuditLogger.logFailure(user, argName, "",
"AdminService", "Exception " + msg); "AdminService", "Exception " + msg);
return RPCUtil.getRemoteException(exception); return RPCUtil.getRemoteException(exception);