[ 
https://issues.apache.org/jira/browse/HDFS-16417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17470026#comment-17470026
 ] 

Íñigo Goiri commented on HDFS-16417:
------------------------------------

Thanks [~coconut_icecream] for the patch.
Do you mind creating a PR instead?
Let's keep the imports expanded too and avoided churn changing the order.

> RBF: StaticRouterRpcFairnessPolicyController init fails with division by 0 if 
> concurrent ns handler count is configured
> -----------------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-16417
>                 URL: https://issues.apache.org/jira/browse/HDFS-16417
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: rbf
>            Reporter: Felix N
>            Priority: Minor
>         Attachments: HDFS-16417.001.patch
>
>
> If {{dfs.federation.router.fairness.handler.count.concurrent}} is configured, 
> unassignedNS is thus empty and {{handlerCount % unassignedNS.size()}} will 
> throw a /0 exception.
> Changed it to assigning extra handlers to concurrent ns in case it's 
> configured.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to