Skip to content
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

UpsertDocumentAsync api sometimes return null etag #972

Open
htzhang2 opened this issue Oct 13, 2023 · 0 comments
Open

UpsertDocumentAsync api sometimes return null etag #972

htzhang2 opened this issue Oct 13, 2023 · 0 comments

Comments

@htzhang2
Copy link

htzhang2 commented Oct 13, 2023

Describe the bug
Occasionally(~1/50 times), UpsertDocumentAsync returns null etag without exception

To Reproduce
for (int i = 0; i <100; i++)
{
// Update document

try
{
Document doc = await this.DocumentDbClient.UpsertDocumentAsync(Uri, updatedDoc).ConfigureAwait(false);
Assert.IsNotNull(doc.ETag);
}
catch(Exception ex)
{
// Log exception
}
}

Expected behavior
ETag not null

Actual behavior
~1/50 ETag is null

Environment summary

SDK Version: 2.18.0
OS Version (e.g. Windows, Linux, MacOSX): Windows

Additional context
Azure Service Fabric
Azure CosmosDb

@htzhang2 htzhang2 changed the title WriteAsync api sometimes return null etag UpsertDocumentAsync api sometimes return null etag Oct 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant