Junping Du commented on YARN-402:

Forget that the queue can be constructed with other queue type other than 
LinkedBlockingQueue. So may be it could be the smaller value within half of 
queue size (if queue is not LinkedBlockingQueue by default) and 1000* 1000 
(estimated as above).

> Dispatcher warn message is too late
> -----------------------------------
>                 Key: YARN-402
>                 URL: https://issues.apache.org/jira/browse/YARN-402
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Lohit Vijayarenu
>            Priority: Minor
> AsyncDispatcher throws out Warn when capacity remaining is less than 1000
> {noformat}
> if (remCapacity < 1000) {
>         LOG.warn("Very low remaining capacity in the event-queue: "
>             + remCapacity);
>       }
> {noformat}
> What would be useful is to warn much before that, may be half full instead of 
> when queue is completely full. I see that eventQueue capacity is int value. 
> So, if one warn's queue has only 1000 capacity left, then service definitely 
> has serious problem.

This message was sent by Atlassian JIRA

Reply via email to