MB-7097: document size limit is 2.5 kb

Change-Id: I7b8b6d935467913da0254579a60e144a3824665e
Reviewed-on: http://review.couchbase.org/27458
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
added behavior for blob documents

Change-Id: I00de3dcb5afc9704d6fc3e4a3657261199f01bb0
[alk@tut.by: fixed typo]
Signed-off-by: Aliaksey Kandratsenka <alk@tut.by>
Reviewed-on: http://review.couchbase.org/27528
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
adaptation to a new data place of docs errors

Change-Id: Ibb0b27c26fbcfacbcce3c90de5abeac2b3649d99
Reviewed-on: http://review.couchbase.org/27459
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-8281: send storage totals with bucket info

We need to synchronize cluster_storage_info and
last_bucket_stats because their values are used
on the UI at moment when bucket details section
is open. Now to get stats last_bucket_stats uses
ns_doctor as like cluster_storage_info.

This commit also makes sure that we send basicStats _only_ if UI
explicitly asks for it.

Change-Id: I5aaba4706fb425a16c62285e0b9539bbcde7bfde
[alk@tut.by: fixed backwards compat issue with interesting_stats]
[alk@tut.by: improved commit message]
Signed-off-by: Aliaksey Kandratsenka <alk@tut.by>
Reviewed-on: http://review.couchbase.org/27495
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
MB-8696: dump error msgs within XDCR if outpaced by db purger

MB-8012 implements the time-stamped based deletion purge in db.
Although the default behavior is to purge deletions older than
several days which is way longer than XDCR lag, unfortunately
there is no guarantee that XDCR is always ahead of the purger.
If XDCR is outpaced by db purger, at least one deletion has
has been lost and we need dump errors into logs to alert users.

Change-Id: I2ca01c71e1bf00c07535f66e84c9787f6b1f4d95
Reviewed-on: http://review.couchbase.org/27665
Reviewed-by: Junyi Xie <junyi.couchbase@gmail.com>
Tested-by: Junyi Xie <junyi.couchbase@gmail.com>
Merge remote-tracking branch 'origin/2.2.0'

* origin/2.2.0:
  MB-8696: dump error msgs within XDCR if outpaced by db purger
  MB-8281: send storage totals with bucket info
  adaptation to a new data place of docs errors
  added behavior for blob documents
  MB-7097: document size limit is 2.5 kb

This is near-trivial merge

Change-Id: Id500a0ef88aeac0dcd8d22da98d2699a38d5adca