Skip to content

Commit 51486db

Browse files
tvaron3Copilot
andauthored
Enable CHANGE_FEED_WITH_START_TIME_POST_MERGE SDK capability (#48752)
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>
1 parent 55cb2bc commit 51486db

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

sdk/cosmos/azure-cosmos/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#### Breaking Changes
88

99
#### Bugs Fixed
10+
* 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.
1011

1112
#### Other Changes
1213

sdk/cosmos/azure-cosmos/src/main/java/com/azure/cosmos/implementation/HttpConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ public static class SDKSupportedCapabilities {
316316
public static final String SUPPORTED_CAPABILITIES;
317317
public static final String SUPPORTED_CAPABILITIES_NONE;
318318
static {
319-
SUPPORTED_CAPABILITIES = String.valueOf(PARTITION_MERGE);
319+
SUPPORTED_CAPABILITIES = String.valueOf(PARTITION_MERGE | CHANGE_FEED_WITH_START_TIME_POST_MERGE);
320320
SUPPORTED_CAPABILITIES_NONE = String.valueOf(NONE);
321321
}
322322
}

0 commit comments

Comments
 (0)