You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug ConsistencyPolicy.defaultConsistencyLevel() API doesn't work properly when reading consistency level from the response json in case of Bounded Staleness and Consistent Prefix.
Describe the bug
ConsistencyPolicy.defaultConsistencyLevel()
API doesn't work properly when reading consistency level from the response json in case of Bounded Staleness and Consistent Prefix.Exception or Stack Trace
Initializing DocumentClient with serviceEndpoint [https://*-cosmosdb.documents.azure.com:/], connectionPolicy [ConnectionPolicy{requestTimeoutInMillis=60000, mediaRequestTimeoutInMillis=300000, connectionMode=GATEWAY, maxPoolSize=1000, idleConnectionTimeoutInMillis=60000, userAgentSuffix=';spring-data/2.2.0;6c9d2bc8f91b89624add29c0abeae7fb42bf539fa1cdb2e3e57cd668fa9bcead;;spring-data/2.2.0;6c9d2bc8f91b89624add29c0abeae7fb42bf539fa1cdb2e3e57cd668fa9bcead;', retryOptions=RetryOptions{maxRetryAttemptsOnThrottledRequests=9, maxRetryWaitTimeInSeconds=30}, enableEndpointDiscovery=true, preferredLocations=null, usingMultipleWriteLocations=false, inetSocketProxyAddress=null}], consistencyLevel [BoundedStaleness], directModeProtocol [Tcp]
2019-12-09 12:31:21,368 WARN [reactor-http-nio-2] com.azure.data.cosmos.ConsistencyPolicy : Unknown consistency level BoundedStaleness, value ignored.
To Reproduce
Create a cosmos db account with default consistency as Bounded Staleness or Consistent Prefix.
Code Snippet
Expected behavior
Parsing code should be changed to handle consistencies with underscore in their enum.
The text was updated successfully, but these errors were encountered: