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

(cherry picked from commit 83cc7263af632939dc3b2ee58d8f03f98ed4d96a)
This commit is contained in:
Daniel Templeton 2016-11-22 11:16:00 -08:00
parent 2207a84a7d
commit 06f5d27bd6

View File

@ -767,7 +767,8 @@ FSLeafQueue assignToQueue(RMApp rmApp, String queueName, String user) {
} 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) {