YARN-5722. FairScheduler hides group resolution exceptions when assigning queue (Contributed by Wilfred Spiegelenburg via Daniel Templeton)
This commit is contained in:
parent
613b902b98
commit
83cc7263af
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user