首页 > 代码库 > 写Storage Table时报The remote server returned an error: (409) Conflict.

写Storage Table时报The remote server returned an error: (409) Conflict.

今天在往 Azure Storage Table中写入一条记录时,在刚开始老报 The remote server returned an error: (409) Conflict. 的异常,过了一阵子又好了。百思不得其解,后来终于在MSDN中找到了一段解释:

When a table is successfully deleted, it is immediately marked for deletion and is no longer accessible to clients. The table is later removed from the Table service during garbage collection.

Note that deleting a table is likely to take at least 40 seconds to complete. If an operation is attempted against the table while it was being deleted, the service returns status code 409 (Conflict), with additional error information indicating that the table is being deleted.

正好确实都是发生在我删除了Table时,再进行重新操作的40秒内发生的。后来删除表坚持40秒后再操作就没出现该问题了。

 

写Storage Table时报The remote server returned an error: (409) Conflict.