From 369a76ce879f4d6de8d9285cd7a7a095387f92c1 Mon Sep 17 00:00:00 2001 From: tvaron3 Date: Thu, 9 Apr 2026 10:38:48 -0700 Subject: [PATCH] Enable CHANGE_FEED_WITH_START_TIME_POST_MERGE SDK capability Enable the CHANGE_FEED_WITH_START_TIME_POST_MERGE capability flag in SUPPORTED_CAPABILITIES so the backend allows IfModifiedSince headers on merged partitions for change feed requests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- sdk/cosmos/azure-cosmos/CHANGELOG.md | 1 + .../java/com/azure/cosmos/implementation/HttpConstants.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/cosmos/azure-cosmos/CHANGELOG.md b/sdk/cosmos/azure-cosmos/CHANGELOG.md index 19ff1ace1e95..2d71505c4b3a 100644 --- a/sdk/cosmos/azure-cosmos/CHANGELOG.md +++ b/sdk/cosmos/azure-cosmos/CHANGELOG.md @@ -7,6 +7,7 @@ #### Breaking Changes #### Bugs Fixed +* Fixed an issue where change feed with `startFrom` point-in-time returned `400` on merged partitions by enabling the `CHANGE_FEED_WITH_START_TIME_POST_MERGE` SDK capability. #### Other Changes diff --git a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/HttpConstants.java b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/HttpConstants.java index 1d2f96316fcf..7eef40c6f689 100644 --- a/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/HttpConstants.java +++ b/sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/HttpConstants.java @@ -316,7 +316,7 @@ public static class SDKSupportedCapabilities { public static final String SUPPORTED_CAPABILITIES; public static final String SUPPORTED_CAPABILITIES_NONE; static { - SUPPORTED_CAPABILITIES = String.valueOf(PARTITION_MERGE); + SUPPORTED_CAPABILITIES = String.valueOf(PARTITION_MERGE | CHANGE_FEED_WITH_START_TIME_POST_MERGE); SUPPORTED_CAPABILITIES_NONE = String.valueOf(NONE); } }