4.79.0 (2026-03-27)
Features Added
- Added support for N-Region synchronous commit feature - See PR 47757
- Added support for Query Advisor feature - See 48160
- Added
CosmosFullTextScoreScopeenum andsetFullTextScoreScope()onCosmosQueryRequestOptionsfor controlling BM25 statistics scope in hybrid search queries. SupportsLOCAL(scoped to target partitions) andGLOBAL(default, all partitions) scopes. See PR 48431
Bugs Fixed
- Fixed Remote Code Execution (RCE) vulnerability (CWE-502) by replacing Java deserialization with JSON-based serialization in
CosmosClientMetadataCachesSnapshot,AsyncCache, andDocumentCollection. The metadata cache snapshot now uses Jackson for serialization/deserialization, eliminating the entire class of Java deserialization attacks. - PR 47971 - Fixed
NullPointerExceptioninDocumentQueryExecutionContextFactory.tryCacheQueryPlanwhen executing hybrid search queries with a partition key filter. See PR 48431 - Fixed
ConcurrentModificationExceptionin hybrid search component query execution caused by concurrent access to shared mutable state. See PR 48431 - Fixed availability strategy for Gateway V2 (thin client) by ensuring
RegionalRoutingContextidentity is based only on the immutable gateway endpoint. - See PR 48432 - Fixed an issue where
replaceItembypassed thecustomItemSerializer, serialising POJOs with the SDK's internalObjectMapperinstead of the user-configured one. - See PR 48529 - Fixed
ClassCastException(ArrayNode cannot be cast to ObjectNode) when executingSELECT VALUE ... GROUP BYqueries. See - PR 48507
Other Changes
- Promoted the following
@BetaAPIs to GA:CosmosContainerProperties.getFullTextPolicy()/setFullTextPolicy(),IndexingPolicy.getCosmosFullTextIndexes()/setCosmosFullTextIndexes(). - See PR 48538 - Added
appendUserAgentSuffixmethod toAsyncDocumentClientto allow downstream libraries to append to the user agent after client construction. - See PR 48505 - Added aggressive HTTP timeout policies for document operations routed to Gateway V2. - PR 47879
- Added a default connect timeout of 5s for Gateway V2 (thin client) data-plane endpoints. - See PR 48174
- Added system property
COSMOS.CONNECTION_ACQUIRE_TIMEOUT_IN_MSand environment variableCOSMOS_CONNECTION_ACQUIRE_TIMEOUT_IN_MSto allow overriding the gateway connection acquire timeout in milliseconds (default 45000ms). Minimum accepted value is 500ms. Replaces the previous_IN_SECONDSvariants. - See PR 48580 - Changed system property for thin client connection timeout from
COSMOS.THINCLIENT_CONNECTION_TIMEOUT_IN_SECONDStoCOSMOS.THINCLIENT_CONNECTION_TIMEOUT_IN_MS(default 5000ms, minimum 500ms). - See PR 48580