Sync Gateway 2.8.1 - February, 2021
https://docs.couchbase.com/sync-gateway/2.8/release-notes.html#lbl-rel281
Note: Release 2.8.1 has now been superseded by Release 2.8.2 (March 2021). Users of 2.8.1 should upgrade to 2.8.2 as soon as practicable.
New Features
Metrics REST API
Release 2.8.1 sees the transition to general availability of Couchbase Sync Gateway’s Metrics REST API, which was introduced as a developer preview in release 2.8.0.
This feature exposes Sync Gateway’s extensive stats in both JSON and Prometheus-compatible format. For more on how to enable the integration of Sync Gateway’s metrics with one of the most popular monitoring and alerting solutions — see: Prometheus Integration
Enhancements
Configuration Changes
Custom Response Headers
It is now possible to remove product versions from Sync Gateway responses using the hide_product_versions
setting in the Config file. This customization of responses avoids revealing the version of the Sync Gateway to HTTP requests to the root path — see: Hide Product Version in Headers and CBG-1235
Connection String Overrides
It is now possible to use the server connection string to override the current heuristic-driven behavior for selecting internal/external networking matches — see: Couchbase Server Connection String and CBG-1276
Other Enhancements
- CBG-1152 — Additional logging context for SGR2 checkpointing
- CBG-1235 — Customizable HTTP response to ""/"" (suppress headers)"
- CBG-1254 — Add a new rev option for document_changed event handler
- CBG-1267 — Exit early from DocChange after running callback for _sync:cfg docs
- CBG-1270 — Add USE INDEX to index readiness queries
- CBG-1274 — Add Prometheus alert examples
- CBG-1276 — Implement network connstr flag for cbdatasource alt address shims
Issues and Resolutions
Known Issues
- CBG-798 — Sync Gateway requires Couchbase Server nodes to use the same SSL memcached port
- CBG-1127 — Treat resurrected tombstones as non-conflict when no shared history
- CBG-1341 — Creating mobile tombstone for existing CBS tombstone causes loop
Fixed Issues
- CBG-1203 — sgcollect_info not collecting system information
- CBG-1234 — Prevent import cfg startup races
- CBG-1252 — Changes limit incorrectly applied in case of CBG-946
- CBG-1263 — Pre-2.8 cbgt index definitions not being removed post-upgrade
- CBG-1265 — Missing document in changes feed when using a compound sequence number as since parameter
- CBG-1311 — ISGR: Pull replications incompatible with active-side allow_conflicts=false