feedIterator.HasMoreResults always returns false in Azure
See original GitHub issueI am trying to get the pull model of the change feed working as described here.
https://docs.microsoft.com/en-us/azure/cosmos-db/change-feed-pull-model
using (var feedIterator = _container.GetChangeFeedIterator<NotificationRequestItemDbContainer>(ChangeFeedStartFrom.Time(startUtc)))
{
while (feedIterator.HasMoreResults)
{
cancellationToken.ThrowIfCancellationRequested();
try
{
var matchedChanges = (await feedIterator.ReadNextAsync(cancellationToken))
I am using version 3.15.2-preview of the .net sdk. When I use this code against my local emulator everything works fine. HasMoreResults is always true as described in the documentation. However when I use a cosmos DB hosted in azure, the HasMoreResults returns false immediately. Even I loop and wait for HasMoreResults to be true it will never return any results. I know the connection and the container are fine because I can query the data fine with a GetItemQueryIterator.
Am I missing some setup to get the change feed to work in azure?
_Originally posted by @Daniel-Guenter in https://github.com/Azure/azure-cosmos-dotnet-v3/discussions/2095_
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (5 by maintainers)
Top GitHub Comments
Verified 3.15.2 also throws the excepted exception, the problem are the docs, so I sent https://github.com/MicrosoftDocs/azure-docs-pr/pull/142108
Docs were updated, should be deployed live in the next 24hs