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
I think that the ReadEvents method in the Subscription class has a do { ... } while(...) loop at the top that looks suspicious. If CosmosDB returns a ResponseContinuation when asked for partition-key-ranges then the loop body will process again. Each time around it does not seem to pass a continuation token to CosmosDB in the API call, implying that the first "page" of results will be re-retrieved.
If true, this will result in a fast infinite loop that hammers the CosmosDB API. This will suddenly manifest in the future when CosmosDB splits partition-key-ranges up to create more ranges than are returned in one call.
(P.S. am happy to pick up fixing any issue raised once other PRs have cleared)