Skip to content

2.25.2.0-b292

@SrivastavaAnubhav SrivastavaAnubhav tagged this 07 Apr 22:13
Summary:
Prior to this diff, we would only complete or abort a database clone in HandleResponse. However, tasks can fail for other reasons like timeouts. If this happened, the clone would be stuck in the `CLONE_SCHEMA_STARTED` state. This would prevent future clones from the same source namespace.

This diff moves the callback logic for clone into the standard `Finished` function, which is called after any transition to a terminal state.
Jira: DB-15898

Test Plan: `./yb_build.sh release --cxx-test integration-tests_minicluster-snapshot-test --gtest_filter *CloneTimeoutExceeded*`

Reviewers: mhaddad

Reviewed By: mhaddad

Subscribers: ybase

Differential Revision: https://phorge.dev.yugabyte.com/D43012
Assets 2
Loading