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

This commit is contained in:
Daniel Templeton 2016-11-22 11:16:00 -08:00
parent 613b902b98
commit 83cc7263af

View File

@ -767,7 +767,8 @@ FSLeafQueue assignToQueue(RMApp rmApp, String queueName, String user) {
} catch (InvalidQueueNameException qne) { } catch (InvalidQueueNameException qne) {
appRejectMsg = qne.getMessage(); appRejectMsg = qne.getMessage();
} catch (IOException ioe) { } 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) { if (appRejectMsg != null && rmApp != null) {