add stacktrace to one xdcr error message

Change-Id: I401840551de1cedb554f158558a916aa5c7276c9
Reviewed-on: http://review.couchbase.org/37935
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
remove some dead code from xdcr

Change-Id: I3198fbf8417651509c4b8789bc53a07e7c50bcb9
Reviewed-on: http://review.couchbase.org/37936
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
add bucket name to #remote_bucket

Change-Id: I56ccb644fcb70afa7c2afbd8fb1b4670f906cd22
Reviewed-on: http://review.couchbase.org/37937
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
get rid of parsing remote url in xdcr code

not necessary and potentially bad for future backward compatibility

Change-Id: I27926c96833e44b4364837dc0dea01ffd5c8c9a4
Reviewed-on: http://review.couchbase.org/37938
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-8194 verify bucket uuid for couchApiBase urls

this is needed to prevent accidental access to the wrong bucket if
the bucket was recreated or node became part of another cluster
that has the bucket with the same name

- UUID might be found in the url right behind the bucket name, separated
  from it by '+'
- for some xdcr requests from pre 3.0 clusters it also can be attached
  to vbucketid separated from it by ';'

Change-Id: I4ad803be19a15643a04e93158d88e8ef1d1cc6c0
Reviewed-on: http://review.couchbase.org/37944
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-8194 add bucket UUID to all possible couchApiBase urls

scheme://host:port/bucketName+uuid

Change-Id: I3bf57eca5629344892c065152f6a33671005da00
Reviewed-on: http://review.couchbase.org/37945
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-8194 make sure that we understand xdcr checkpoint requests

... from older clusters. older clusters won't be able to parse
bucket name correctly from our couchApiBase url, so they will
send us bucketname+uuid and we need to parse uuid out on our end

Change-Id: I5838e0d73124cacf30cedc4874406777fda75914
Reviewed-on: http://review.couchbase.org/37946
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-8194 do not attach bucket uuid to vbucket in vbmap urls

- 3.0 clusters don't need it
- pre 3.0 clusters won't verify bucket uuid in this case, but I think
  we can live with it

Change-Id: I0750af2b253adb962168b08a99fbb03e03660aac
Reviewed-on: http://review.couchbase.org/37947
Tested-by: Artem Stemkovski <artem@couchbase.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>