-
Notifications
You must be signed in to change notification settings - Fork 494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot disable Analytical store in container (setting AnalyticalStoreTimeToLiveInSeconds to null has not effect) #4634
Comments
Verified the SDK client behavior. When Managed to repro the behavior on my side too. Will report back if I get more information. |
@ealsur. Thanks for confirming this. Can you think of a workaround in the meantime? We were about to release a new enhancement to our SAAS APP that relied on this (we are an MS ISV)? Mant thanks. |
I'm just trying to diable it on a specific Container. Not on all of them. |
Correct, the above screenshot is the Portal UX for a specific container. The Analytical Storage Time to Live cannot be turned Off. Which maps what is happening on the client SDK (the SDK is sending the REST API payload without the configuration to disable it and the response comes back without disabling the TTL) |
https://learn.microsoft.com/en-us/azure/cosmos-db/analytical-store-introduction#analytical-ttl It seems according to the documentation 0 or null should disabled it, but on my test, only 0 did. This would be a gap/misleading on the docs. |
According to the documentation, to disable the analytical store in a container we simply need to set the containerProperties.AnalyticalStoreTimeToLiveInSeconds to null.
According to our tests, setting the AnalyticalStoreTimeToLiveInSeconds to null in an existing container has not effect (the value doesn't get changed at all).
The code we are using to update the analytical store ttl value is:
Expected result:
The container property AnalyticalStoreTimeToLiveInSeconds should be set to null and the analytical store disabled in the container.
Actual result:
The value of AnalyticalStoreTimeToLiveInSeconds property remains the same and the analytical store remains enabled in the container.
The text was updated successfully, but these errors were encountered: