GitHub user tedyu opened a pull request:
https://github.com/apache/zookeeper/pull/149
ZOOKEEPER-2664: ClientPortBindTest#testBindByAddress may fail due to "No
such device" exception
The following stack trace was observed intermittently:
```
Stacktrace
java.net.SocketException: No such device
at java.net.NetworkInterface.isLoopback0(Native Method)
at java.net.NetworkInterface.isLoopback(NetworkInterface.java:390)
at
org.apache.zookeeper.test.ClientPortBindTest.testBindByAddress(ClientPortBindTest.java:61)
at
org.apache.zookeeper.JUnit4ZKTestRunner$LoggedInvokeMethod.evaluate(JUnit4ZKTestRunner.java:52)
Standard Output
```
Proposed fix is to catch exception from isLoopback() call and skip the test
in that case.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/tedyu/zookeeper master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/zookeeper/pull/149.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #149
commit 9b4cbd0e395cc9d569e0bdf062580278d9541bdd
Author: tedyu
Date: 2017-01-13T17:23:13Z
ZOOKEEPER-2664 ClientPortBindTest#testBindByAddress may fail due to "No
such device" exception
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---