-
Notifications
You must be signed in to change notification settings - Fork 325
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
[Bug] DeleteDocumentHandler does not delete all records from AI Search #933
Comments
@gabrielgirbacea which document store are you using? what you observe could be a result of using a volatile document store, which is the default one. |
@dluc I am using Azure Blob Storage and for queues, Azure Queues. |
Do you see any errors in the logs? Some scenarios I would check:
|
Hi @dluc, Following up on this issue:
The issue appears to originate within the DeleteDocumentHandler class, specifically the InvokeAsync method.
These logs confirm the discrepancy in record counts initially reported. Although GetListAsync seems to retrieve all expected entities, some are not deleted during the process. |
Hi @dluc , Do you have any updates regarding my previous message? |
Hi @gabrielgirbacea. I made a contribution (#877) that allows a Session ID to be used when performing requests to Azure AI Search. This is surfaced as the With this setting enabled the
I used this in some custom code to migrate records from one Azure AI Search instance to another and the final record counts matched unlike prior attempts without the I would be interested to know if this setting is helpful with the above problem. I'm wondering if the delay introduced by the call to |
Context / Scenario
Steps to reproduce:
Expected result: Deletes all the records/partitions from AI Search for a document id.
Actual result: Some records/partitions are not deleted.
A few examples of how many records were deleted per different sizes of the file:
Please let me know if I can provide more details.
Thank you.
What happened?
Calling the "delete document" endpoint should delete all records from AI Search for the provided document id, regardless of how many records there are stored.
Note: When importing a file for an existing document id, SaveRecordsHandler is deleting all the existing records, as expected, before adding the new records.
Importance
edge case
Platform, Language, Versions
C# - .NET 8.0
Windows 11
Visual Studio Professional 2022
Kernel Memory (latest - 0.94.241201.1)
Relevant log output
The text was updated successfully, but these errors were encountered: