[
https://issues.apache.org/jira/browse/ZOOKEEPER-1662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13929860#comment-13929860
]
Michi Mutsuzaki commented on ZOOKEEPER-1662:
--------------------------------------------
+1 the patch looks good to me.
> Fix to two small bugs in ReconfigTest.testPortChange()
> ------------------------------------------------------
>
> Key: ZOOKEEPER-1662
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1662
> Project: ZooKeeper
> Issue Type: Bug
> Components: tests
> Affects Versions: 3.5.0
> Reporter: Alexander Shraer
> Assignee: Alexander Shraer
> Priority: Minor
> Fix For: 3.5.0
>
> Attachments: TestPortChange.patch
>
>
> Fix to two small bugs in ReconfigTest.testPortChange():
> 1. the test expected a port change to happen immediately, which is not
> necessarily
> going to happen. The fix waits a bit and also tries several times.
> 2. when a client port changes, the test created a new ZooKeeper handle, but
> didn't specify a Watcher object, which generated some NullPointerException
> events when the watcher was triggered.
--
This message was sent by Atlassian JIRA
(v6.2#6252)