Mike Percy has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/8735 )
Change subject: KUDU-1097. Only add/evict when processing leader tablet reports ...................................................................... KUDU-1097. Only add/evict when processing leader tablet reports The leader replica is the only replica that sends a health report. The master needs the health report to make an eviction decision. Thus, we should only consider eviction or addition of a new replica if the tablet report was received from the leader. There is no standalone test for this but this patch is required for the following patch, "Never evict a leader", to pass due to the DCHECK introduced in that patch. Change-Id: If7e318e042cd27ff4544bc5aae76db4ab9e51da1 Reviewed-on: http://gerrit.cloudera.org:8080/8682 Tested-by: Kudu Jenkins Reviewed-by: Alexey Serbin <[email protected]> Reviewed-on: http://gerrit.cloudera.org:8080/8735 Tested-by: Mike Percy <[email protected]> --- M src/kudu/master/catalog_manager.cc 1 file changed, 24 insertions(+), 20 deletions(-) Approvals: Alexey Serbin: Looks good to me, approved Mike Percy: Verified -- To view, visit http://gerrit.cloudera.org:8080/8735 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: branch-1.6.x Gerrit-MessageType: merged Gerrit-Change-Id: If7e318e042cd27ff4544bc5aae76db4ab9e51da1 Gerrit-Change-Number: 8735 Gerrit-PatchSet: 2 Gerrit-Owner: Mike Percy <[email protected]> Gerrit-Reviewer: Alexey Serbin <[email protected]> Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Mike Percy <[email protected]>
