forked from apache/kudu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[java] fix bug in getClosestServerInfo code
When client handles tablet not found error, it removes the tablet server from 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 Reviewed-on: http://gerrit.cloudera.org:8080/15444 Reviewed-by: Adar Dembo <[email protected]> Tested-by: Kudu Jenkins
- Loading branch information
1 parent
c4e2561
commit acabee5
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters