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.
KUDU-1853 (redux). tablet copy: Don't orphan blocks on failure
Previously, if a tablet copy failed we would orphan data blocks. This patch makes it so that a failed tablet copy operation that does not involve a process crash does not orphan data blocks. This also refactors some deletion logic out of TSTabletManager so that TabletCopyClient will tombstone partially-copied tablets when the copy operation fails. This version of the patch addresses and tests for a data loss issue (KUDU-1968) that was merged along with a previous version of this patch, and released with Kudu 1.3.0, before it was reverted in Kudu 1.3.1. Additional changes in the revised patch: * Don't check that block ids do not overlap between source and destination in tablet_copy_client-test since that's not guaranteed. * Attempt to detect data loss in tablet_copy_client-test and fail the test if detected. In the case of the log block manager, this check is currently not reliable due to KUDU-1980. * Rename old_superblock_ to remote_superblock_ in TabletCopyClientSession. Originally committed as 72541b4 before being reverted due to KUDU-1968. Change-Id: Ic999ccd27859ace0d635255e86729dff8e1d8349 Reviewed-on: http://gerrit.cloudera.org:8080/6733 Tested-by: Kudu Jenkins Reviewed-by: Adar Dembo <[email protected]>
- Loading branch information
Showing
8 changed files
with
374 additions
and
204 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
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
Oops, something went wrong.