Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
4.5.0
-
None
-
4.5.0-2497
Description
1.create a bucket with 1000 docs and create moi or forestdb indexes using defer_build=True.
Primary index is not created with defer_build=True.
2. Take backup of this bucket using new cbbackupmgr.
./cbbackupmgr config --archive /tmp/backup --repo simple_table —-host http://127.0.0.1:8091 —-username Administrator —-password password
./cbbackupmgr backup --archive /tmp/backup --repo simple_table --host http://172.23.107.87:8091 --username Administrator --password password
I am attaching the backup taken in this bug.
3. Do cbrestore using this command:
./cbbackupmgr restore --archive /tmp/backup --repo simple_table --host http://172.23.107.9:8091 --username Administrator --password password
Restore happens correctly and we see 1000 documents restored in the bucket on 172.23.107.9.
4. Check indexes tab. All indexes get restored correctly except primary index. Attaching backup and logs from new host.
Primary index created is shown in attachment though it was not created using defer_build=True.