Description
Before I run the backup stript for a 2 node cluster with 100K items, I use /etc/init.d/couchbase-server stop to make a node down.
cbbackup can't stop is this way and will throw a broken pipe error:
[chisheng@cen-1715 membase-cli]$ ./cbbackup http://10.3.3.13:8091 ~/backup/backup-1
Exception in thread w0:] 0.0% (0/59671 msgs)
Traceback (most recent call last):
File "/usr/lib64/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib64/python2.6/threading.py", line 484, in run
self._target(*self.args, **self._kwargs)
File "/home/chisheng/membase-cli/pump.py", line 263, in run_worker
source_map, sink_map, self.ctl, curx).run()
File "/home/chisheng/membase-cli/pump.py", line 319, in run
rv_batch, batch = self.source.provide_batch()
File "/home/chisheng/membase-cli/pump_tap.py", line 104, in provide_batch
rv, tap_conn = self.get_tap_conn()
File "/home/chisheng/membase-cli/pump_tap.py", line 231, in get_tap_conn
self.tap_conn.sasl_auth_plain(sasl_user, sasl_pswd)
File "/home/chisheng/membase-cli/mc_bin_client.py", line 261, in sasl_auth_plain
return self.sasl_auth_start('PLAIN', '\0'.join([foruser, user, password]))
File "/home/chisheng/membase-cli/mc_bin_client.py", line 257, in sasl_auth_start
return self._doCmd(memcacheConstants.CMD_SASL_AUTH, mech, data)
File "/home/chisheng/membase-cli/mc_bin_client.py", line 107, in _doCmd
self._sendCmd(cmd, key, val, opaque, extraHeader, cas)
File "/home/chisheng/membase-cli/mc_bin_client.py", line 60, in _sendCmd
vbucketId=self.vbucketId)
File "/home/chisheng/membase-cli/mc_bin_client.py", line 68, in _sendMsg
self.s.send(msg + extraHeader + key + val)
error: [Errno 32] Broken pipe
################### 100.0% (59671/59671 msgs)
[1]+ Stopped ./cbbackup http://10.3.3.13:8091 ~/backup/backup-1