MB-10227 Avoid crash on allowedTimePeriod in compaction settings.

Change-Id: Ie6ca73585da93c8ae35efbbaea446a8fd2e8b0b3
Reviewed-on: http://review.couchbase.org/33647
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-10220 Always allow generate_map_chain use chain maps.

Since we started using generate_map_chain for generation of star maps
for the case when num_replicas is 1 and no tags are defined, the code
there should be adapted to accept past maps with 'chain'
replication_topology even when current replication_topology (and hence
replication_topology in options passed to the function) is 'star'.

Change-Id: I989d28618f96f4af09c9b78eda7e3ee97f366dea
Reviewed-on: http://review.couchbase.org/33684
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Fix dialyzer warnings.

Change-Id: I2149af37833fae58ddea05011a7aca0d426b8074
Reviewed-on: http://review.couchbase.org/33687
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Don't do HEAD request in couch_api_wrap:db_open.

Change-Id: Ie6a0154c9fd2a2d2cafb8b3acb1552bf1c3bca13
Reviewed-on: http://review.couchbase.org/33692
Tested-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Merge remote-tracking branch 'origin/for-rackaware'

* origin/for-rackaware:
  Don't do HEAD request in couch_api_wrap:db_open.
  Fix dialyzer warnings.
  MB-10220 Always allow generate_map_chain use chain maps.
  MB-10227 Avoid crash on allowedTimePeriod in compaction settings.

trivial merge

Change-Id: I997ec1dd4bc104118d87cf0652469af35c52baa9
Detect node name change correctly.

Change-Id: Idf812cbbca97af9de9846eb6ba0b46a62c52d02e
Reviewed-on: http://review.couchbase.org/33543
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Restart ssl application after certificate gets updated.

ssl application keeps a cache of certificate files. I didn't find an
easy way to flush the cache, so instead I restart the application as
part of restarting ssl-related services.

Change-Id: I687bdb7c80be6e737c9354277edb8bcfd99e2d1b
Reviewed-on: http://review.couchbase.org/33544
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-10083 Add support for SSL_CERTS_REFRESH memcached command.

Change-Id: I3bbca5b85e7014caab124e9605ea2a49cd1eefde
Reviewed-on: http://review.couchbase.org/33545
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-10083 Generate memcached certificate and private key files.

In when compat mode is 3.0, certificate file contains both node and
cluster certificates and private key file contains node's private
key. Otherwise certificate file contains cluster certificate and
private key file contains cluster private key.

Change-Id: I08be6e05a4da9c81ff09bd6f76e70ccaa0ddc4ce
Reviewed-on: http://review.couchbase.org/33512
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-10151: tunable Memory UI

Change-Id: Ib9e99c1cd18ef983996a92b6a7380680acb289b2
Reviewed-on: http://review.couchbase.org/33438
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-10151 Allow changing eviction policy.

Change-Id: I3e7318f39646f1633b8250baba9182ff584c5281
Reviewed-on: http://review.couchbase.org/33584
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Actualize bucket priority related messages.

Change-Id: Ia9e93953291fd0520f3a7d925999cce6e0546fa6
Reviewed-on: http://review.couchbase.org/33585
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-10170: recompiled generate_cert program

It looks like last time I used some broken go toolchain that somehow
made non-statically-linked executable.

Change-Id: I404b8793fe003d05b9891b8ac019789496fb4eaf
Reviewed-on: http://review.couchbase.org/33719
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
MB-10181: disabled autocomplete for secure fields

Change-Id: I9d4c40aff149e9526d69fc16d6fc725ff4e89357
Reviewed-on: http://review.couchbase.org/33530
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-9970: allow to close XDCR Errors dialog on escape

Change-Id: I81f547b0a1bbd3f8d53c03acbcc6ae5cb2e097c7
Reviewed-on: http://review.couchbase.org/33533
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-9970: close all dialogs on escape by default

Change-Id: I6e9ac2684be6a2ee78822eda4032e6026e0baa9c
[alk@tut.by: added closeOnEscape: false in few places where its needed]
Signed-off-by: Aliaksey Kandratsenka <alk@tut.by>
Reviewed-on: http://review.couchbase.org/33534
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-7588: combine documents and views bucket hash name

Change-Id: I23f6800a7a35478416d25cb492e599be08220b29
Reviewed-on: http://review.couchbase.org/33535
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-10193: move onClose method to proper place

Change-Id: I7e36d077ecebb6a48b2ebb03915f3aa3624f756d
Reviewed-on: http://review.couchbase.org/33536
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-7155: proper reset of filter form

Change-Id: I598a5bb634c07f8f4a50eb6d68560de0cb3e7f2f
Reviewed-on: http://review.couchbase.org/33614
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
remove unused function argument

Change-Id: I4431ab6843266896fa0dbe175c0213cc10bb37e2
Reviewed-on: http://review.couchbase.org/33705
Reviewed-by: Aliaksey Artamonau <aliaksiej.artamonau@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>