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

Constant POST requests to https://<account>.table.core.windows.net:443/Tables() failing with 409 #42

Closed
adrianbontea opened this issue Mar 8, 2018 · 5 comments

Comments

@adrianbontea
Copy link

Hi,

We are using the Serilog.Sinks.AzureTableStorage v4.0.0 for logging from a web app running on .net framework 4.6.1, hosted in Azure as an App Service. Logging is currently the only thing in the system that writes to Azure Table Storage.

During high traffic periods where a lot of log entries are produced we are seeing (logged as Dependency Call Failures in Azure App Insights) a very high rate of POST requests to https://<account>.table.core.windows.net:443/Tables() that fail with 409 from the Azure Table Service API.

The log entries that the application produces accumulate normally under the LogEventEntity table.

What could be the source of these requests? Does the AzureTableStorage sink implement some kind of health check mechanism that could be doing this kind of requests? (That seem invalid)

Thanks,
Adrian

@adrianbontea adrianbontea changed the title Constant POST requests to https://<account>.table.core.windows.net:443/Tables() failing with 404 Constant POST requests to https://<account>.table.core.windows.net:443/Tables() failing with 409 Mar 8, 2018
@cdavid
Copy link

cdavid commented Mar 21, 2018

Hi @adrianbontea

409 is the status code for conflict (as per here). Azure Table Storage gets back a conflict when the (Partition Key, Row Key) pair is identical to another row in the table.

Can you please give us some more details about how you use this sink (in particular, how and if you generate your own partition / row keys)?

Catalin

@garthvh
Copy link

garthvh commented Dec 28, 2018

We are seeing the same thing here @cdavid this is not happening on an insert, rather what appears to be the account table list query.

@garthvh
Copy link

garthvh commented Jan 4, 2019

You can close the issue, this seems to be expected behavior for the client library 8+ CloudTable.CreateIfNotExists throws a 409 error and moves on if the table already exists.

@ThomasPe
Copy link
Contributor

ThomasPe commented May 4, 2022

I feel like we should address this by checking manually if the table already exists as outlined here: https://medium.com/medialesson/application-insights-azure-table-storage-createifnotexists-errors-3e2584a38b24

@ThomasPe
Copy link
Contributor

Fixed

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

4 participants