HADOOP-17711. Fix divide by zero in LoadBalancingKMSClientProvider.#3048
HADOOP-17711. Fix divide by zero in LoadBalancingKMSClientProvider.#3048yiyuaner wants to merge 2 commits intoapache:trunkfrom
Conversation
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
| } | ||
|
|
||
| private int nextIdx() { | ||
| if (providers.length == 0) { |
There was a problem hiding this comment.
Thanks @yiyuaner for reporting the issue. Should we check providers.length in constructor as there are many other places assumes providers.length is not 0.
There was a problem hiding this comment.
Ok. I have moved the checks to the constructor.
|
💔 -1 overall
This message was automatically generated. |
|
We're closing this stale PR because it has been open for 100 days with no activity. This isn't a judgement on the merit of the PR in any way. It's just a way of keeping the PR queue manageable. |
This pr fixes the issue here.