bp: Always require local_alert key argument to have a node.

Change-Id: I7238ec6500c1f0c462762779bf575b198fb3c030
Orig-Reviewed-on: http://review.couchbase.org/37206
Orig-Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Orig-Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-on: http://review.couchbase.org/42853
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
bp: MB-11137 Fix sending mail alerts for compound keys.

Change-Id: Ie2312d8aa4e7b26f958988427d57c8c399b62ce4
Orig-Reviewed-on: http://review.couchbase.org/37207
Orig-Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Orig-Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-on: http://review.couchbase.org/42854
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
bp: MB-11722: Don't set couch_port when creating a bucket

We're removing the couch notifier from ep-engine so this
parameter is no longer valid.

Removed unused parameter: couch_port

Change-Id: I7e697b51abd17115e04d55f151a86d2baa9d8308
Orig-Reviewed-on: http://review.couchbase.org/38834
Reviewed-on: http://review.couchbase.org/42978
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
bp: upgrade memcached engine config

Because ep-engine folks want to change static_config of ep-engine.

Change-Id: Ife0fc29a9ccfff3a5572b4c78dd6f313787118a7
Orig-Reviewed-on: http://review.couchbase.org/41265
Reviewed-on: http://review.couchbase.org/42979
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
bp: remove depricated ep.so params vb0 & waitforwarmup

Change-Id: I04fe8de3c76ba350f7021c688365585ec224f398
Orig-Reviewed-on: http://review.couchbase.org/41212
Reviewed-on: http://review.couchbase.org/42980
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
bp: remove mc_couch related code

not needed anymore since couch notifier is removed from ep_engine

Change-Id: I9b45bae0327c9b0a2598ea027bd46952aed9ce99
Orig-Reviewed-on: http://review.couchbase.org/41000
Reviewed-on: http://review.couchbase.org/42981
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
bp: remove mccouch notification constant definitions

because mccouch is gone

Change-Id: Ic6335db33b294bfc06c155bf841ca4876a8dc18a
Orig-Reviewed-on: http://review.couchbase.org/41586
Reviewed-on: http://review.couchbase.org/42982
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
bp: dropped mccouch_port config

Orig-Reviewed-on: http://review.couchbase.org/41587

Conflicts:
	cluster_run

Conflict is quite trivial.

Change-Id: I55f10fd319dad246bb8e99647217883a2cbcc888
Reviewed-on: http://review.couchbase.org/42983
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
bp: MB-12099 Handle unicode:characters_to_binary errors.

Change-Id: Id2110b83b28cbcb23a00426e292e234663d0d38f
Orig-Reviewed-on: http://review.couchbase.org/41096
Reviewed-on: http://review.couchbase.org/42984
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
bp:MB-11567: Pass bucket name and password from environment variables

Windows will have different interpretation on cmd arguments from Linux.
If empty password is passed, the next argument is treated as password.
As such, environment variable is better place to pass bucket credentials.

Change-Id: I626e979ccfbcb279dcaeb3cdb3713c9b264c89ba
Orig-Reviewed-on: http://review.couchbase.org/41293
Reviewed-on: http://review.couchbase.org/42985
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
bp: MB-12156 Don't trap exits while change disk paths.

It's not needed and prevents us from a situation where process gets
stuck and wakes up much later (potentially after node became part of a
cluster) and thus invalidates the check that node is not provisioned.

Change-Id: Ib0ae8513b34826af7e196628f8d1b2f11a7f0f94
Orig-Reviewed-on: http://review.couchbase.org/41333
Reviewed-on: http://review.couchbase.org/42986
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
bp: MB-12156 Don't delete buckets when changing datapath.

Change-Id: Ie738291e367e3e136c771086a7c1deb6d45c7dc1
Orig-Reviewed-on: http://review.couchbase.org/41332
Reviewed-on: http://review.couchbase.org/42987
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
bp: MB-12147 Check all required stats for disk/data usage.

We have couch_disk_data_size (as well as some other stats that don't
make sense) even if there're only memmcached buckets. That's because in
certain places we don't make clear separation between memcached and
membase buckets in stats_collector code. I decided that it's easier to
just check all the required stats and fix the referred bug in this way.

Change-Id: Ia1620031aa87245178e205a30f7e97ded2ac7451
Orig-Reviewed-on: http://review.couchbase.org/41379
Reviewed-on: http://review.couchbase.org/42988
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
bp: MB-12158: don't trap exits in dcp_proxy processes

Because we don't really need to.

And most importantly because erlang has a bug where send might get
stuck forever if socket is closed on other end.

So if we just die when dcp_replicator dies we'll avoid this
problem. Or at very least we'll close both sockets without any delays.

Change-Id: Id6143b6157aad641e28cdc783b74a0843d55b118
Orig-Reviewed-on: http://review.couchbase.org/41410
Reviewed-on: http://review.couchbase.org/42989
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
bp: MB-12288:only allow xdcr-over-ssl proxying to memcached data port

Change-Id: Iec6869a2762366283ebabc508879ad2f3ef39763
Orig-Reviewed-on: http://review.couchbase.org/41804
Reviewed-on: http://review.couchbase.org/42990
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
bp:MB-12358: disable ssl v3 for management and capi endpoints

Change-Id: I4cf9ccac9e487e417f0f3c74ea295bbf1421be40
Orig-Reviewed-on: http://review.couchbase.org/42188
Reviewed-on: http://review.couchbase.org/42991
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
bp: MB-12358: disable ssl v3 for xdcr ssl proxy

Change-Id: Ic4cd9ac5dd7a8bd4351af7154a84e82fc17f1cb7
Orig-Reviewed-on: http://review.couchbase.org/42209
Reviewed-on: http://review.couchbase.org/42992
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
bp:MB-12104 restart terse_bucket_info_uploader after ns_memcached is restarted

to make sure that terse bucket info gets reuploaded to memcached

Change-Id: Ic0e6303102dbcd301b042301b34026b4d4b6709c
Orig-Reviewed-on: http://review.couchbase.org/42394
Reviewed-on: http://review.couchbase.org/42993
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
bp: harmless typo

Change-Id: I3bd2dbd8f8abea0ad480abb6c12898cadeb16dbd
Orig-Reviewed-on: http://review.couchbase.org/42397
Reviewed-on: http://review.couchbase.org/42994
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
bp: don't insist on unique name for ns_memcached_sup instances

Which breaks multiple buckets because every bucket creates its own
instance of ns_memcached_sup which all try to register under same name
and fail.

Change-Id: I4cff4d6db4706ae4b529b832916dc7cff5d3918d
Orig-Reviewed-on: http://review.couchbase.org/42433
Reviewed-on: http://review.couchbase.org/42995
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>