Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ksck will segfault when some tablet servers that host tablet replicas are missing. This happens, for example, if the master is still restarting and has not yet fully populated its list of live tablet servers. The root cause is that a vector of replicas is being sorted by tserver uuid obtained from the master even if the master is not aware of the tablet server was not found, causing a segmentation fault when trying to access the uuid. The fix just checks for a missing tserver reference and sorts such replicas first. The included test segfaults without the fix. Change-Id: I66ff69bc3aa567863b61ee8e686fc13c81db6fdf Reviewed-on: http://gerrit.cloudera.org:8080/7261 Tested-by: Kudu Jenkins Reviewed-by: David Ribeiro Alves <[email protected]>
- Loading branch information