YARN-5722. FairScheduler hides group resolution exceptions when assigning queue (Contributed by Wilfred Spiegelenburg via Daniel Templeton)

(cherry picked from commit 83cc7263af)
This commit is contained in:
Daniel Templeton 2016-11-22 11:16:00 -08:00
parent 2207a84a7d
commit 06f5d27bd6
1 changed files with 2 additions and 1 deletions

View File

@ -767,7 +767,8 @@ public class FairScheduler extends
} catch (InvalidQueueNameException qne) {
appRejectMsg = qne.getMessage();
} catch (IOException ioe) {
appRejectMsg = "Error assigning app to queue " + queueName;
// IOException should only happen for a user without groups
appRejectMsg = "Error assigning app to a queue: " + ioe.getMessage();
}
if (appRejectMsg != null && rmApp != null) {