I was trying to backup all set of a namespace, First I had done backup with 100,000 records, backup contains all the records, I was successfully able to truncate and restore all the records.
But when I tried backup for 1,000,000 and 2,000,000 records, the backup misses few 100s of keys in the backup file. Truncating and restoring results in key loss. Below are the logs of execution when 1999859 record(s) was in the set. Any help will be appreciated.
Namespace contains 1999859 record(s)
Backed up 1999145 record(s),
('backup CMD: ', 'asbackup --host localhost:3000 --namespace test --directory /home/chandan/aero-bk/BACKUP-2021-12-02-11-26-08-FULL')
2021-12-02 05:56:08 GMT [INF] [21442] Starting 100% backup of localhost:3000 (namespace: test, set: [all], bins: [all], after: [none], before: [none]) to /home/chandan/aero-bk/BACKUP-2021-12-02-11-26-08-FULL
2021-12-02 05:56:08 GMT [INF] [21442] [src/main/aerospike/as_cluster.c:124][as_cluster_add_nodes_copy] Add node BB94C5090F13902 127.0.0.1:3000
2021-12-02 05:56:08 GMT [INF] [21442] [src/main/aerospike/as_cluster.c:124][as_cluster_add_nodes_copy] Add node BB952887EF31F02 127.0.0.1:3010
2021-12-02 05:56:08 GMT [INF] [21442] [src/main/aerospike/as_cluster.c:124][as_cluster_add_nodes_copy] Add node BB9E4AFF77ED502 127.0.0.1:3011
2021-12-02 05:56:08 GMT [INF] [21442] Processing 3 node(s)
2021-12-02 05:56:08 GMT [INF] [21442] Node ID Objects Replication
2021-12-02 05:56:08 GMT [INF] [21442] BB94C5090F13902 1322691 2
2021-12-02 05:56:08 GMT [INF] [21442] BB952887EF31F02 1334496 2
2021-12-02 05:56:08 GMT [INF] [21442] BB9E4AFF77ED502 1342531 2
2021-12-02 05:56:08 GMT [INF] [21442] Namespace contains 1999859 record(s)
2021-12-02 05:56:08 GMT [INF] [21442] Directory /home/chandan/aero-bk/BACKUP-2021-12-02-11-26-08-FULL does not exist, creating
2021-12-02 05:56:08 GMT [INF] [21442] Directory /home/chandan/aero-bk/BACKUP-2021-12-02-11-26-08-FULL prepared for backup
2021-12-02 05:56:08 GMT [INF] [21461] Starting backup for node BB94C5090F13902
2021-12-02 05:56:08 GMT [INF] [21462] Starting backup for node BB952887EF31F02
2021-12-02 05:56:08 GMT [INF] [21463] Starting backup for node BB9E4AFF77ED502
2021-12-02 05:56:08 GMT [INF] [21461] Created new backup file /home/chandan/aero-bk/BACKUP-2021-12-02-11-26-08-FULL/BB94C5090F13902_00000.asb
2021-12-02 05:56:08 GMT [INF] [21462] Created new backup file /home/chandan/aero-bk/BACKUP-2021-12-02-11-26-08-FULL/BB952887EF31F02_00000.asb
2021-12-02 05:56:08 GMT [INF] [21463] Created new backup file /home/chandan/aero-bk/BACKUP-2021-12-02-11-26-08-FULL/BB9E4AFF77ED502_00000.asb
2021-12-02 05:56:08 GMT [INF] [21461] No secondary indexes
2021-12-02 05:56:08 GMT [INF] [21461] Backing up 0 UDF file(s)
2021-12-02 05:56:09 GMT [INF] [21460] 0% complete (~2982 KiB/s, ~17834 rec/s, ~171 B/rec)
2021-12-02 05:58:59 GMT [INF] [21460] ~31s remaining
2021-12-02 05:59:09 GMT [INF] [21460] 90% complete (~1854 KiB/s, ~11088 rec/s, ~171 B/rec)
2021-12-02 05:59:09 GMT [INF] [21460] ~17s remaining
2021-12-02 05:59:19 GMT [INF] [21460] 95% complete (~1737 KiB/s, ~10389 rec/s, ~171 B/rec)
2021-12-02 05:59:19 GMT [INF] [21460] ~8s remaining
2021-12-02 05:59:24 GMT [INF] [21461] Completed backup for node BB94C5090F13902, records: 654011, size: 112018581 (~171 B/rec)
2021-12-02 05:59:27 GMT [INF] [21462] Completed backup for node BB952887EF31F02, records: 665738, size: 114025559 (~171 B/rec)
2021-12-02 05:59:29 GMT [INF] [21460] 99% complete (~414 KiB/s, ~2477 rec/s, ~171 B/rec)
2021-12-02 05:59:29 GMT [INF] [21460] ~4s remaining
2021-12-02 05:59:32 GMT [INF] [21463] Completed backup for node BB9E4AFF77ED502, records: 679396, size: 116365166 (~171 B/rec)
2021-12-02 05:59:32 GMT [INF] [21460] Backed up 1999145 record(s), 0 secondary index(es), 0 UDF file(s) from 3 node(s), 342409306 byte(s) in total (~171 B/rec)