Create database(demo1) and create snapshot schedule
Create table and load some data
Create another database(demo2)
Clone demo1 to demo2
Observations
Clone command from demo1 db to demo2 db works
Cloning process(operation) fails
After that if user wants to clone demo1 to any other DB then it fails with
Error running clone_namespace: Already present (yb/master/clone/clone_state_manager.cc:368): Cannot create new clone state because there is already an ongoing clone for source namespace 00004024000030008000000000000000 in state 2
Expected:
Clone should block(throw an appropriate error message) in case if user mistakenly uses the existing database(As target DB) to clone.
Issue Type
kind/bug
Warning: Please confirm that this issue does not contain any sensitive information
[X] I confirm this issue does not contain any sensitive information.
Jira Link: DB-10525
Description
Version: 2.23.0.0-b36 Steps:
Observations
Error running clone_namespace: Already present (yb/master/clone/clone_state_manager.cc:368): Cannot create new clone state because there is already an ongoing clone for source namespace 00004024000030008000000000000000 in state 2
Expected: Clone should block(throw an appropriate error message) in case if user mistakenly uses the existing database(As target DB) to clone.
Issue Type
kind/bug
Warning: Please confirm that this issue does not contain any sensitive information