fix(ingest/gc): infinite loop query entities (#12274)

This commit is contained in:
Aseem Bansal 2025-01-06 16:39:02 +05:30 committed by GitHub
parent b86bbf7262
commit 842c8f94a5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -258,7 +258,7 @@ class SoftDeletedEntitiesCleanup:
) )
break break
scroll_across_entities = result.get("scrollAcrossEntities") scroll_across_entities = result.get("scrollAcrossEntities")
if not scroll_across_entities: if not scroll_across_entities or not scroll_across_entities.get("count"):
break break
scroll_id = scroll_across_entities.get("nextScrollId") scroll_id = scroll_across_entities.get("nextScrollId")
self.report.num_queries_found += scroll_across_entities.get("count") self.report.num_queries_found += scroll_across_entities.get("count")