bind failures while running tests184/head
commitf87fb2b685861929cbec38ac18e8275a6ad7da2d
authorArunachalam Thirupathi <arunachalam.t@gmail.com>
Wed, 21 May 2014 22:41:17 +0000 (21 15:41 -0700)
committerArunachalam Thirupathi <arunachalam.t@gmail.com>
Wed, 21 May 2014 22:50:39 +0000 (21 15:50 -0700)
tree3509ac36a44fa61b3184455c886949ce891d6cb4
parenta368b2e49fce4c672f9f3dd2d1b51efdd7a6b76c
bind failures while running tests

1) Fixed bunch of bind failures where the server is not stopped after
the test causing the bind failures.
2) Added instrumentation to report the port for http when the bind
failure happens, so that we can dig through the log to find the last
started service.
3) Fixed the resource loader to throw error when resource is missing
instead of failing with NPE.
4) Fixed Streaming Client to throw the actual error instead of failing
with NPE on bind failures.
5) Increased the sleep time for Zone Rebalance test as 2 ms is not
enough on my machine. 5 ms sort of fixes the problem, but only time will
tell
src/java/voldemort/server/http/HttpService.java
test/common/voldemort/VoldemortTestConstants.java
test/unit/voldemort/client/SocketStoreClientFactoryMbeanTest.java
test/unit/voldemort/client/protocol/admin/StreamingClientTest.java
test/unit/voldemort/client/rebalance/AbstractRebalanceTest.java
test/unit/voldemort/client/rebalance/AbstractZonedRebalanceTest.java
test/unit/voldemort/server/storage/RepairJobTest.java
test/unit/voldemort/utils/ConsistencyCheckTest.java
test/unit/voldemort/utils/ServerTestUtilsTest.java