Mike Percy has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/8682 )
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 <aser...@cloudera.com> --- M src/kudu/master/catalog_manager.cc 1 file changed, 24 insertions(+), 20 deletions(-) Approvals: Kudu Jenkins: Verified Alexey Serbin: Looks good to me, approved -- To view, visit http://gerrit.cloudera.org:8080/8682 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: If7e318e042cd27ff4544bc5aae76db4ab9e51da1 Gerrit-Change-Number: 8682 Gerrit-PatchSet: 7 Gerrit-Owner: Mike Percy <mpe...@apache.org> Gerrit-Reviewer: Alexey Serbin <aser...@cloudera.com> Gerrit-Reviewer: Kudu Jenkins Gerrit-Reviewer: Mike Percy <mpe...@apache.org>