Hi Gary,
Could you tell me what Couchbase Server version you are running with this issue?
I did try with your scenario with Couchbase Server 4.5.0 and I could not reproduce it.
Here is the steps and output of my test.
- Install Couchbase Server 4.5.0 on 3 Ubuntu 12.04 servers
- Create a cluster of 3 nodes
- Create 2 memcached buckets (default and test-imem)
- Create 1 couchbase bucket (test-2-cb)
- Load 10 thousands document into bucket test-2-cb
- Transfer 10k docs on bucket test-2-cb out with format csv to folder /tmp/backup
- In folder /tmp/backup, there are 3 files with total 10,003 lines (1 header line for each file)
root@ubuntu:~# /opt/couchbase/bin/cbworkloadgen -n localhost:8091 -b test-2-cb -j --prefix=test_
2017-01-23 09:04:32,156: mt skipping bucket that is not a couchbase-bucket: default
2017-01-23 09:04:32,156: mt skipping bucket that is not a couchbase-bucket: test-1mem
[####################] 100.0% (10527/estimated 10526 msgs)
bucket: default, msgs transferred...
: total | last | per sec
byte : 721927 | 721927 | 497614.7
done
root@ubuntu:~#
root@ubuntu:~# rm -rf /tmp/backup/*
root@ubuntu:~# /opt/couchbase/bin/cbtransfer http://localhost:8091 csv:/tmp/backup/test-2-cb.csv -b test-2-cb -u Administrator -p password
2017-01-23 09:05:24,501: mt skipping bucket that is not a couchbase-bucket: default
2017-01-23 09:05:24,501: mt skipping bucket that is not a couchbase-bucket: test-1mem
[####################] 100.0% (10000/estimated 10000 msgs)
bucket: test-2-cb, msgs transferred...
: total | last | per sec
byte : 686888 | 686888 | 330235.7
done
root@ubuntu:~# ls /tmp/backup/
test-2-cb_test-2-cb_12.11.10.130%3A8091.csv test-2-cb_test-2-cb_12.11.10.131%3A8091.csv test-2-cb_test-2-cb_12.11.10.132%3A8091.csv
root@ubuntu:~# wc -l /tmp/backup/test*
3342 /tmp/backup/test-2-cb_test-2-cb_12.11.10.130%3A8091.csv
3340 /tmp/backup/test-2-cb_test-2-cb_12.11.10.131%3A8091.csv
3321 /tmp/backup/test-2-cb_test-2-cb_12.11.10.132%3A8091.csv
10003 total
root@ubuntu:~#
Thanks.