Releases: couchbase/couchbase-cxx-client
1.0.2
1.0.2
API documentation: https://docs.couchbase.com/sdk-api/couchbase-cxx-client-1.0.2
Full Changelog: 1.0.1...1.0.2
Fixes
- CXXCBC-577: Reduce duplicated code in http_component (#657).
- CXXCBC-593: Apply configuration profile as the last step (#655).
- CXXCBC-552: Cleanup network selection options (#651). Deprecates
behavior_options#network()
in favor tonetwork_options#preferred_network()
- Update code samples in API reference (#653).
- CXXCBC-576: Ensure all HTTP sessions are stopped when closing the core cluster (#648).
Columnar changes
- CXXCBC-577: Add columnar database management operations.
- CXXCBC-588: Update timeout sent to server on each columnar query retry (#654).
- CXXCBC-580: Report last error when timing out on columnar query retries (#650).
Build and Test Infrastructure
- CXXCBC-303: Update build scripts to produce RPM packages (#660).
- CXXCBC-597: Use static library for ASIO and update it to 1.31.0 (#658).
- CXXCBC-596: Do not include tao_json_serializer.hxx by default (#656).
- Include in string_hex.h (#652)
1.0.1
API documentation: https://docs.couchbase.com/sdk-api/couchbase-cxx-client-1.0.1
Full Changelog: 1.0.0...1.0.1
Enhancements
- CXXCBC-564: Allow to specify all operations (Get, Replace, Delete, Insert and Query) in pillowfight workload (#640).
- Improve logging of DNS client (#634).
- CXXCBC-568: Cancel deferred operations when closing HTTP session manager (#643).
Fixes
- CXXCBC-531: Fix memory leak in range scan implementation (#645, 610).
- CXXCBC-573: Avoid uninitialized reads in the logger test (#610).
- CXXCBC-572: Always initialize service_type (#610).
- CXXCBC-569: Resolve cycle in shared pointers for
transaction_context
(#641). - CXXCBC-550]: Fixed use-after-move issue in command handler (#628)
- Fix build of Ruby wrapper on Windows (#636).
- Fix behaviour when reading is complete before returning HTTP streaming resp (#624).
Columnar changes
In this release new build mode for Columnar has been introduced. The CMake flag -DCOUCHBASE_CXX_CLIENT_COLUMNAR
would produce special version of the library that is optimized for usage with Columnar deployments.
- Add initial Columnar core implementation (#616).
- CXXCBC-525: Open cluster connection in background (#621).
- Use
open_in_background
when creating test cluster in Columnar mode (#625). - CXXCBC-542: Richer error information from columnar core (#626).
- Update columnar log message, enable
dispatch_timeout
if in connection string (#627). - Add helper method for serializing ctx into columnar error message (#632).
- Add columnar query positional params (#635).
- CXXCBC-543: Add retries for columnar query (#637).
- CXXCBC-562: Provide HTTP session manager with updated cluster (#638).
- CXXCBC-556: Use versioned columnar query endpoint (#639).
- CXXCBC-557: Add global columnar timeout config (#642).
1.0.0
API documentation: https://docs.couchbase.com/sdk-api/couchbase-cxx-client-1.0.0
Full Changelog: 1.0.0-dp.15...1.0.0
Enhancements
-
CXXCBC-509: Allow to restrict replica set to selected server group. This feature allows to implement network optimization when traffic cost between server groups is higher than in the local group. In this case the application might select preferred server group in the connection options, and later opt-in for local operations during replica reads. Related tickets: CXXCBC-546, CXXCBC-513, CXXCBC-513, CXXCBC-509 (#614, #593, #587, #571, #566).
-
CXXCBC-530: Include 'min' parameter when encoding disjunction FTS queries (#604)
-
CXXCBC-394: Hide tao::json where it is possible. We still have taocpp/json headers in places where default JSON transcoder is being used.
-
CXXCBC-449: Do not expose ASIO in public API.
-
CXXCBC-381: Use std::shared_ptr for transactions_context and attempt_context. (#590)
-
CXXCBC-510: Support binary objects in transactions. This changes allows to use transcoders in transactions API. (#576)
-
Improvements in Vector Search:
- Add invalid argument check. (#578)
- CXXCBC-514 Support for base64 encoded vector types (#575)
- CXXCBC-516: Return
feature_not_available
when upserting vector search index to incompatible cluster. (#572)
-
CXXCBC-407: Allow to use 0 as a max expiry for new collections. (#569)
-
CXXCBC-496: Convert C++ Public API Error handling to use
couchbase::error
. Related tickets: CXXCBC-492, CXXCBC-498, CXXCBC-499, CXXCBC-500, CXXCBC-508, CXXCBC-526 (#570, #557, #562, #560, #564, #567, #603, #597, #595, #594). -
Update stability levels for API 3.6 level. Remove deprecated
search_query
(#602).
Fixes
-
CXXCBC-517: Add HTTP session retries when SDK fails to resolve hostnames (#589).
-
CXXCBC-445: Return
request_canceled
on IO error in HTTP session. (#568) -
CXXCBC-511: Prevent use of HTTP session if idle timer has expired. (#565)
-
CXXCBC-523: Clean up dump_configuration config output (#577)
-
CXXCBC-531: Fix deadlock in cluster destructor (public API) (#608)
-
CXXCBC-534: Fix callbacks to avoid
bad_function_call
exception. (#606) -
CXXCBC-518: Handle alternate addresses when locating preferred_node. (#574)
Build and Tests Fixes
1.0.0-dp.15
API documentation: https://docs.couchbase.com/sdk-api/couchbase-cxx-client-1.0.0-dp.15
Full Changelog: 1.0.0-dp.14...1.0.0-dp.15
Enhancements
- CXXCBC-443: Public API for Range Scan. (#546)
- CXXCBC-489: Support scoped eventing functions. (#548)
- CXXCBC-489: Add
version_7_2_0 eventing
function language compatibility. (#554) - CXXCBC-470: Distinguish between 'unset' and 'off' query_profile (#551)
Fixes
- CXXCBC-487: Check if alternate addressing is used when bootstrapping. (#545)
- CXXCBC-503: Ignore configuration if it contains an empty vBucketMap. (#556, #558)
- CXXCBC-30: Inconsistent behaviour when using subdoc opcodes incorrectly (#559)
- CXXCBC-492: Use retry strategy in collections_component's get_collection_id. (#552)
- CXXCBC-494: Fix memory issue in range scan implementation. (#549)
- Always attempt to extract common query code if error has not been set. (#561) Fixes quota/rate limit checks for older servers.
Build and Tests Fixes
- CXXCBC-502: Apply
/bigobj
for SDK objects only. (#550) Avoid using global add_definitions() as it might leak to non-CXX languages (likeASM_NASM
on Windows). - Add feature check for scoped analyze_document in tests (#555)
- Update dependencies (#543)
1.0.0-dp.14
API documentation: https://docs.couchbase.com/sdk-api/couchbase-cxx-client-1.0.0-dp.14
Full Changelog: 1.0.0-dp.13...1.0.0-dp.14
Fixes
-
CXXCBC-482: Range scan orchestrator should use best effort retry strategy by default. (#542)
-
CXXCBC-481: Fix potential crash when parsing search result hits. (#541)
-
CXXCBC-461: Do not send ping to nodes that have not completed bootstrap. (#540)
-
CXXCBC-462: Fix hanging when specifying a custom metadata collection via the public API & expose errors. (#532)
-
CXXCBC-480: LookupInAnyReplica should not enforce any limits on number of specs in the library. (#539)
-
CXXCBC-479: Fix capabilities check for replica LookupIn operations. (#537)
-
CXXCBC-336: Do not fallback to 8.8.8.8, if we cannot obtain system DNS server (#533)
-
CXXCBC-448: Expose hooks for fork() scenarios. (#536)
See
example_fork::main()
intest/test_integration_examples.cxx
.
Build and Tests fixes
-
CXXCBC-458: Run transactions hooks asychronously. (#538)
-
Fix build with GCC 14. (#535)
-
Cleanup output of the transaction code sample. (#534)
-
Fix query error context fields. (#531)
1.0.0-dp.13
API documentation: https://docs.couchbase.com/sdk-api/couchbase-cxx-client-1.0.0-dp.13
Full Changelog: 1.0.0-dp.12...1.0.0-dp.13
New features and enhancements
-
CXXCBC-456: handle 0x0d (config_only) status from KV (#523).
On 0x0d (EConfigOnly) status code SDK will request new configuration, and send current operation to retry orchestrator. -
CXXCBC-191: Create Index Key Encoding (#519)
-
CXXCBC-442: Add support for raw_json and raw_string transcoders (#514, #515)
-
Add full_set option to view query options (#517)
Fixes
-
CXXCBC-345: Range scan improvements & resolve concurrency issues (#525).
-
CXXCBC-284: Do not use session that is not bootstrapped to poll for config (#528)
-
CXXCBC-447: Use addresses from the config to bootstrap bucket (#516)
-
CXXCBC-450: Reset bootstrap handler before re-bootstrap (#524).
We do not want any actions from old bootstrap handler once the session decided to re-bootstrap.
For example, bucket could not be selected, but we might still get configuration responses before
socket reset. -
Update view design_document rev to be optional (#526).
-
Change encoded search request showrequest param from string to boolean. (#518)
-
CXXCBC-452: Update capabilities and fail fast when selected feature is not available. (#522, #513)
- CXXCBC-431: Add check for history retention bucket capability in collection create/update (#502, #505)
- CXXCBC-421: Return feature_not_available when query preserve expiry is not supported (#510)
Build optimizations and Tools
-
Improvements in cbc-pillowfight (#529)
- record latencies and display histogram in the end of the run,
- fix termination condition when using multiple threads,
- use running average for runtime rate display,
- allow to configure separate batch size for queries,
- fixed links in the reference pages.
-
Fix doxygen warnings and update config (#530).
-
Test improvements.
1.0.0-dp.12
API documentation: https://docs.couchbase.com/sdk-api/couchbase-cxx-client-1.0.0-dp.12
Full Changelog: 1.0.0-dp.11...1.0.0-dp.12
New features and enhancements
- CXXCBC-401: Add ping & diagnostics to public API. (#498, #503)
- CXXCBC-346: Support for maxTTL value of -1 for collection 'no expiry'. (#500)
- CXXCBC-442: Support for raw_json and raw_string transcoders. (#514)
- CXXCBC-440: Support for Scoped Search Indexes. (#512, #513)
Fixes
- CXXCBC-284: Reduce network traffic when polling for cluster configuration. (#504)
- CXXCBC-422: Add insufficient credentials error code to common query error code conversion. (#511)
- CXXCBC-421: Return
feature_not_available
when query preserve expiry is not supported. (#510) - CXXCBC-426: Get with very large projection test is returning fields outside of the projection. (#499)
Build optimizations
- CXXCBC-446: Improve logging formatting. (#508, #506, #509)
- CXXCBC-446: Run sanitizers with TLS connections. (#507)
- CXXCBC-431: Add check for history retention bucket capability in collection create/update. (#502, #505)
- Add cap to
exp_delay
to limit number of transaction retries. (#494) - Declare boringssl as system library (#509)
1.0.0-dp.11
API documentation: https://docs.couchbase.com/sdk-api/couchbase-cxx-client-1.0.0-dp.11
Full Changelog: 1.0.0-dp.10...1.0.0-dp.11
Fixes
-
CXXCBC-404: KV_LOCKED status should be exposed as
cas_mismatch
for unlock. (#479) -
CXXCBC-403: Allow retries for KV
not_my_vbucket
response. (#480) -
CXXCBC-368: Subscribe to clustermap notifications to speedup failover. (#490)'
-
CXXCBC-419: Ensure that MCBP protocol parser starts with clean state. Fixes protocol parsing issues when bootstrap sequence is being retried. (#496)
-
CXXCBC-409: Add handling for 'index does not exist' query error. (#492)
-
CXXCBC-391: Fix transactions API inconsistencies. (#482)
- Remove
kv_timeout
- Rename
expiration_time
totimeout
- Remove
-
CXXCBC-408: Search Public API Issues. (#487)
- implement search sort geo distance
- add constructor to phrase query with vector
- add
doc_id_query
encode - complete search row location definition
New features and enhancements
- CXXCBC-309: Implement Search index management public API (#483)
- CXXCBC-100: Add ability to set timeout for ping. (#486)
- CXXCBC-412: Support
document_not_locked
response. (#491) - CXXCBC-308: Add analytics index manager in the public API. (#484)
Build optimizations
- CXXCBC-332: Hide implementation of the
core::cluster
class into object file to speedup the build. (#415) - CXXCBC-411: fix logger issues by compiler (#488)
1.0.0-dp.10
API documentation: https://docs.couchbase.com/sdk-api/couchbase-cxx-client-1.0.0-dp.10
Full Changelog: 1.0.0-dp.9...1.0.0-dp.10
Fixes
- CXXCBC-383: Map
subdoc_doc_too_deep
KV status topath_too_deep
error code. (#455) - CXXCBC-382: Fix
raw_binary_transcoder
so thatget
s on binary data are possible. (#459)
New features and enhancements
- CXXCBC-377: Implement ExtParallelUnstaging in transactions. (#457)
- CXXCBC-363: Add examples for bulk operations. (#442)
- Add more information to diagnose timeouts on NMV responses. (#475)
- Migrate cbc tools from
docopt
toCLI11
. (#466)
Runtime performance optimizations
- CXXCBC-387: Optimising tags for
noop_tracer
. (#461) - CXXCBC-387: Cache formatted
mbcp_session
endpoints. (#462, #464)
Build optimizations
1.0.0-dp.9
API documentation: https://docs.couchbase.com/sdk-api/couchbase-cxx-client-1.0.0-dp.9
Full Changelog: 1.0.0-dp.8...1.0.0-dp.9
-
CXXCBC-376: Revisit what 'create' and 'update' bucket operations send to the server. Make optional bucket settings fields optional, and do not send anything unless the settings explicitly specified. (#451)
-
CXXCBC-374: Return 'bucket_exists' error when the bucket already exists during 'create' operation. (#449)
-
CXXCBC-359: Reduce default HTTP idle timeout to 1 second (#448)
-
CXXCBC-367, CXXCBC-370: Add history retention settings to buckets/collection management. (#446)
-
CXXCBC-119: Return booleans for subdocument 'exists' operation instead of error code. (#444, #452)
-
Detect 'collection_not_found' error in 'update_collection' response (#450)