You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@curator.apache.org by GitBox <gi...@apache.org> on 2020/09/19 08:18:44 UTC
[GitHub] [curator] hjyun328 opened a new pull request #374: CURATOR-583: Fix ArrayIndexOutOfBoundsException when passing empty li…
hjyun328 opened a new pull request #374:
URL: https://github.com/apache/curator/pull/374
Whenever I add zookeeper servers by using reconfig API of the curator client, it always throw ArrayIndexOutOfBoundsException.
If there are no servers to add or remove when using reconfigure API of ZooKeeperAdmin, I think it must pass not empty list parameter but null to reconfigure API. Because ZooKeeperAdmin tries to join strings by accessing first index of the server list.
Please refer to the link below.
https://github.com/apache/zookeeper/blob/release-3.6.2/zookeeper-server/src/main/java/org/apache/zookeeper/admin/ZooKeeperAdmin.java#L267-L269
https://github.com/apache/zookeeper/blob/release-3.6.2/zookeeper-server/src/main/java/org/apache/zookeeper/common/StringUtils.java#L57
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [curator] hjyun328 commented on pull request #374: CURATOR-583: Fix ArrayIndexOutOfBoundsException when passing empty li…
Posted by GitBox <gi...@apache.org>.
hjyun328 commented on pull request #374:
URL: https://github.com/apache/curator/pull/374#issuecomment-695759670
@eolivelli, @TisonKun
Thanks for your review.
I just added a test case for `withNewMembers`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [curator] TisonKun closed pull request #374: CURATOR-583: Fix ArrayIndexOutOfBoundsException when passing empty li…
Posted by GitBox <gi...@apache.org>.
TisonKun closed pull request #374:
URL: https://github.com/apache/curator/pull/374
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org