Yifan Zhang has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/15444


Change subject: [java] fix bug in getClosestServerInfo code
......................................................................

[java] fix bug in getClosestServerInfo code

When client handle tablet not found error, it removes the tablet server
form the RemoteTablet's locations. If all tablet servers are removed,
the code in getClosestServerInfo will throw a division by zero exception.
This patch fixed it and added a test to verify getClosestServerInfo
returns null when all locations of a tablet are invalid.

Change-Id: Ib4dc471b5044ea4b5bd6202ccd2a707d6e229ea0
---
M java/kudu-client/src/main/java/org/apache/kudu/client/RemoteTablet.java
M java/kudu-client/src/test/java/org/apache/kudu/client/TestRemoteTablet.java
2 files changed, 14 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/44/15444/1
--
To view, visit http://gerrit.cloudera.org:8080/15444
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib4dc471b5044ea4b5bd6202ccd2a707d6e229ea0
Gerrit-Change-Number: 15444
Gerrit-PatchSet: 1
Gerrit-Owner: Yifan Zhang <[email protected]>

Reply via email to