Todd Lipcon has submitted this change and it was merged.

Change subject: Delete a tablet explicitly when it is replaced
......................................................................


Delete a tablet explicitly when it is replaced

When master send CreateReplica to all replica peers of a tablet, if any
peer timeout, master will replace the old tablet with a new one, but it
will not delete the old replicas on TS. These relicas will be removed if
TS report them to master, but only when:

  1. Quorum config change.
  2. TS start and make a full report.

If none of those happen, these replicas become orphaned replicas.

Also we may need to add periodic full replica report in TS, to prevent
potential inconsistencies like this, Haven't figure out how to identify
and log the inconsistency accurately, so defer this.

Change-Id: Ib58b1efc334a27e825e68f34dbf3f05c7da60606
Reviewed-on: http://gerrit.cloudera.org:8080/1770
Tested-by: Kudu Jenkins
Reviewed-by: Todd Lipcon <[email protected]>
---
M src/kudu/integration-tests/create-table-itest.cc
M src/kudu/master/catalog_manager.cc
M src/kudu/master/catalog_manager.h
3 files changed, 39 insertions(+), 8 deletions(-)

Approvals:
  Todd Lipcon: Looks good to me, approved
  Kudu Jenkins: Verified



-- 
To view, visit http://gerrit.cloudera.org:8080/1770
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib58b1efc334a27e825e68f34dbf3f05c7da60606
Gerrit-PatchSet: 5
Gerrit-Project: kudu
Gerrit-Branch: master
Gerrit-Owner: Binglin Chang <[email protected]>
Gerrit-Reviewer: Binglin Chang <[email protected]>
Gerrit-Reviewer: Internal Jenkins
Gerrit-Reviewer: Kudu Jenkins
Gerrit-Reviewer: Mike Percy <[email protected]>
Gerrit-Reviewer: Todd Lipcon <[email protected]>

Reply via email to