CBD-399: add and improve XDCR logging

This change-set adds logging when source bucket map changes, which
is critical and missing in current code. It also simplifies some
existent logging in XDCR.

Change-Id: I14f38c60d82951ad10e0e5a5472eeea432373f69
Reviewed-on: http://review.couchbase.org/18404
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Junyi Xie <junyi.couchbase@gmail.com>
Tested-by: Junyi Xie <junyi.couchbase@gmail.com>
CBD-399: remove some logging outputs

This change-set removes some logs in XDCR manager to avoid dump too
much traces into log files.

Change-Id: I9b80005472d5d13a7bc4642083677d9abb71a550
Reviewed-on: http://review.couchbase.org/18429
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Junyi Xie <junyi.couchbase@gmail.com>
CBD-399: refactoring capi_replication code

This change-set simplifies capi_replication code used by XDCR.
It also removes some unused code from retired couchdb replicator.

Change-Id: I7de8c448ccb8f82cdd2772dafc8019ca1a623971
Reviewed-on: http://review.couchbase.org/18193
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Junyi Xie <junyi.couchbase@gmail.com>
MB-5307: tweaked vbucket map rebalance counts experiment

* made set of nodes more ordered

* made it compute permutations of [1..100] x [1..100]

Change-Id: I39add3b681514f53142956de9ac56b81b99d7d38
MB-5307: gitignore core files

Change-Id: I8955bda9f7b9002d18acbadc682015ed6f1348aa
MB-5307: improved logging of executing_on_new_process failures

So that we also log pids of 'inner' process for easier log analyzing.

Change-Id: I300dfa199793eb189f61d1afcb77ad820f0d77ea
MB-5307: silence upstream sender during vbucket filter change

So that no races are possible.

Change-Id: I3a622f398aafe126fb075868eb8f6c8ac85e54c0
MB-5906: have finite timeouts for tap names unregistering

MB-5906 is about memcached problem, but that memcached problem caused
rebalance to stuck hard. And that was caused by infinite timeouts of
those recv calls.

Change-Id: I8c925e3df85c5066d7e478299783877966325543
MB-5938: bumped up docloader timeout to 60 seconds

Because docloader is a bit too slow.

Change-Id: Ibddfffb9b22ede4cfae9974136dfa8cd9fbef418
MB-5307: removed obsolete ns_server supervision tree image

Change-Id: I6ff3372703824bf05404d31728dd6b6237b6ac93
MB-5307: updated ns-server-hierarchy.txt

Change-Id: Ief560ac715f9ed12a346e273e795a3de397b8df9
MB-5307: moved is_undef_exit to misc

Change-Id: I50fbd173eb8469e7e76a821d7c26be8e715a5798
MB-5307: moved mb_master later

So that mb_master & it's childs can access doctor

Change-Id: I39ca743209b4eb551fe8fb9f920d5594f7dffef2
MB-5968: re-impl. vbucket states & replications orchestration

I'll add more text here.

Change-Id: If58f4508872b58ade6e0e690537b076c77df0f25
MB-5307: ignore {error, view_undefined} for set views

Somehow sometimes it throws {error, view_undefined} when we only
expect view_undefined to be thrown. Let's try to just ignore it like
plain view_undefined 'throw'.

Change-Id: I37695277787c4bdfc2da7a1ab8c5d4854ed2c5a7
MB-5307: killed add_with_meta and unused args of set_with_meta

Change-Id: I40c51ed46dd6aab054cd3b7c2dd7b46d028a1fdf
MB-5307: get rid of useless capi_replication:make_return_tuple

Change-Id: Ieac5e184715912ae362ce19cc70b8ea495a9da80
MB-5307: introduced update_with_meta

There's nearly no semantic difference between delete and set given how
get-meta handles them. And given how our code demultiplexes into them.

Change-Id: I2c94ebba03788bb8d03fbb045bd937e7a2fbfa0f
MB-5307: killed ns_memcached:{set,delete}_with_meta

Because they're not used anymore

Change-Id: I3cd5bb7c0cd8a4e580f9959b1f3aed2410eab9c8
MB-5307: dont bother with revs for document editing GET

Because we don't need to

Change-Id: I09a08a936afec97d86f284a68e7292fd6aac4750