[
https://issues.apache.org/jira/browse/YARN-10486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17233545#comment-17233545
]
Benjamin Teke commented on YARN-10486:
--------------------------------------
Thanks [~pbacsko].
_Note that there are two places in ParentQueue.java where you have to switch
between normal and relaxed validation. The previous patch was incorrect. The
"if" conditions might not be completely obvious, let me know if it's confusing
I'll and try to rewrite it._
With the added comments I think the ifs are clear. Small nit: in both cases
there are unnecessary parens.
_Another thing is that we can't just let the queues to have arbitrary capacity.
It would be good but the capacity values propagate towards the top (root) and
eventually somewhere along the line it will fail. So basically you'd need to
set the new property to "true" for a given hierarchy, which is really not
convenient. So the sum of capacities must be either 0% or 100%. But it's still
more lenient than the current code._
I see, and agree on the not convenient part. In this case maybe the property
name should be more telling, like _allow zero capacity sum_.
> FS-CS converter: handle case when weight=0
> ------------------------------------------
>
> Key: YARN-10486
> URL: https://issues.apache.org/jira/browse/YARN-10486
> Project: Hadoop YARN
> Issue Type: Sub-task
> Components: yarn
> Reporter: Peter Bacsko
> Assignee: Peter Bacsko
> Priority: Major
> Labels: fs2cs
> Attachments: YARN-10486-001.patch, YARN-10486-002.patch,
> YARN-10486-003-approach2.patch, YARN-10486-004-approach2.patch,
> YARN-10486-005.patch
>
>
> We can encounter an ArithmeticException if there is a single or multiple
> queues under a parent with zero weight.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]