Problems with restore operation
Hi.
I have a cluster of 2 nodes.
I am trying to backup nodes and restore,
To simulate the restore process, i deleted the bucket.
But this deleted the data of /opt/couchbase/var/lib/couchbase/data/default-data/
only on one node.
So i delete the data on the other node.
But then, i started having problems.
After the restore, i could not flush the bucket or delete it. when i did it, the data was always recovered some
how.
So eventually i tried to:
1. remove nodes
2. restart servers
3. uninstall the couchbase on both servers
but then the rebalance of the servers failed since the /opt/couchbase/var/lib/couchbase/data/default-data/
was missing.
This was solved by copying these files from the other node.
What should i do?
how should i retore data? can i not delete the bucket & data on other node in order to simulate no data?
Thanks
I think the problem you may have run into is that the deletion of the data when deleting a bucket actually occurs asynchronously so as to provide a good UI experience. The underlying deletion of data can take a long time if you have a lot of data.
The best thing to do after delete and before restore would be to periodically check for when the data is gone. After the data is gone, you can recreate the bucket and restore.
This is a known issue and something we plan to fix in a future release.