-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Potential bug in current
function implementation in the Cosmos package
#24493
Comments
@josegl Thanks for reporting the issue, can you provide more information on what operation you are trying to do? Also the complete stack trace of the exception. |
@sajeetharan sorry that I did not update this sooner.
The operation that we were trying to do was a query to one collection in one of our CosmosDB databases. This happens very deep in the network stack regarding AppInsights: (the actual name of the collections and db names are hidden under variable names)
|
Hi @sajeetharan Was this info useful? Thanks for looking into this |
@xirzec would be possible for you to take a look at this? thank you very much |
@charly22 we are tracking this. @abkolant-MSFT @v1k1 |
@sajeetharan do you have any update on this? |
We just discussed on this, @amanrao23 will provide an update soon! is it blocking you on anything? |
@sajeetharan thanks for the update and sorry for our insistence we're actually experiencing this issue in our production environment once in a while, so, blocking no, but affecting the reliability of our product yes. |
Hi, it would be helpful if you could provide us the following details to recreate this scenario.
|
We were able to reproduce it 💪 That said, when the result of
the
because Hope this information helps you to reproduce it. |
### Packages impacted by this PR [@azure/cosmos](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/cosmosdb/cosmos) ### Issues associated with this PR #24493 ### Describe the problem that is addressed by this PR The code was breaking for any parallel query where the result is `0` or `false` or array of them. Eg. `SELECT value c['type'] from c where c['type']=0`. This fix enables typecheck of the `feedResponse`. ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [ ] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary)
Fix is released in v3.17.3 |
Describe the bug
When the
current
function is executed, it reaches theFetchResultType.Exception
case, so it will do this (line 2813):But we have this exception raised:
To Reproduce
We don't know how to reproduce this because we had this stack trace in our logs, so when we wanted to investigate what was going on, we found this thing, so we don't know was was the actual problem.
Expected behavior
To throw the expected error in order to check out what was actually the problem that triggered the error.
Screenshots
Additional context
This did not happen in local, but in a cloud environment in the Azure cloud.
The text was updated successfully, but these errors were encountered: