Skip to content

Comments

updated the logging logic when running retention delete with archivin…#643

Merged
paullizer merged 1 commit intoStagingfrom
Development
Jan 26, 2026
Merged

updated the logging logic when running retention delete with archivin…#643
paullizer merged 1 commit intoStagingfrom
Development

Conversation

@paullizer
Copy link
Contributor

Issue Description

The retention policy deletion process was logging errors when attempting to delete conversations or documents that had already been deleted (e.g., by another process or user action between the query and delete operations).

Error Observed

DEBUG: [Log] delete_aged_conversations_deletion_error -- {'error': '(NotFound) Entity with the specified id does not exist in the system.

Root Cause

This is a race condition scenario where:

  1. The retention policy queries for aged conversations/documents
  2. Between the query and the delete operation, the item is deleted by another process (user action, concurrent retention execution, etc.)
  3. The delete operation fails with CosmosResourceNotFoundError (404 NotFound)

@paullizer paullizer merged commit 1bb6863 into Staging Jan 26, 2026
3 of 4 checks passed
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

Successfully merging this pull request may close these issues.

1 participant