-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.CosmosbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.cosmos:v4-itemIndicates this feature will be shipped as part of V4 release trainIndicates this feature will be shipped as part of V4 release traincustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Description
Lines 158 to 159 in cd464cf
| getLocalSessionToken(request, sessionToken, StringUtils.EMPTY); | |
| request.getHeaders().remove(HttpConstants.HttpHeaders.SESSION_TOKEN); |
Line 159 is unreachable because the call to getLocalSessionToken in line 158 will always result in an java.lang.IllegalStateException due to the hard-coded empty string in the 3rd parameter.
Lines 64 to 73 in cd464cf
| private static ISessionToken getLocalSessionToken( | |
| RxDocumentServiceRequest request, | |
| String globalSessionToken, | |
| String partitionKeyRangeId) throws CosmosClientException { | |
| if (partitionKeyRangeId == null || partitionKeyRangeId.isEmpty()) { | |
| // AddressCache/address resolution didn't produce partition key range id. | |
| // In this case it is a bug. | |
| throw new IllegalStateException("Partition key range Id is absent in the context."); | |
| } |
We are experiencing the same issue in version 2.6.5 (com.microsoft.azure.cosmosdb.internal.SessionTokenHelper).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
ClientThis issue points to a problem in the data-plane of the library.This issue points to a problem in the data-plane of the library.CosmosbugThis issue requires a change to an existing behavior in the product in order to be resolved.This issue requires a change to an existing behavior in the product in order to be resolved.cosmos:v4-itemIndicates this feature will be shipped as part of V4 release trainIndicates this feature will be shipped as part of V4 release traincustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.