ATLAS-5317: Resilient bulk purge with pre-validation, enriched responses, and worker batches#695
Open
sheetalshah1007 wants to merge 1 commit into
Open
ATLAS-5317: Resilient bulk purge with pre-validation, enriched responses, and worker batches#695sheetalshah1007 wants to merge 1 commit into
sheetalshah1007 wants to merge 1 commit into
Conversation
sheetalshah1007
force-pushed
the
ATLAS-5317
branch
from
July 15, 2026 10:31
ec7c116 to
7b7fca4
Compare
…ses, and worker batches
sheetalshah1007
force-pushed
the
ATLAS-5317
branch
from
July 15, 2026 16:48
7b7fca4 to
15348d8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Attachments
What changes were proposed in this pull request?
This PR implements resilient bulk purge per the attached design specification (Resilient Bulk Purge in Atlas Using Transaction Batching). It replaces the old single-transaction REST bulk purge with pre-validated, worker-batch processing shared by REST and scheduled (cron) purge.
Key changes
failedEntitieswitherrorCode/errorMessage.atlas.purge.api.max.request.size(default 1000) caps GUIDs per REST purge request.PurgeBatchOrchestrator/WorkItemManagerwithatlas.purge.worker.batch.size(default 100) andatlas.purge.workers.count(default 2).EntityMutationResponseaddsfailedEntitiesandPurgeSummary(includingpurgedDependenciesCount/failedDependenciesCount).DeleteHandlerV1tolerates vertices/edges already removed by another worker (ATLAS-4766).accumulateDeletionCandidates()returnsSet<String>(GUIDs) for worker-safe enqueueing.AUTO_PURGEadded toatlas_operationin0010-base_model.jsonfor scheduled purge audit on fresh installs.Compatibility and behavior notes
accumulateDeletionCandidates()now returnsSet<String>(GUIDs) instead ofSet<AtlasVertex>. CustomAtlasEntityStoreimplementations should update their method signature; Apache Atlas ships onlyAtlasEntityStoreV2.failedEntitieson REST (no longer silently ignored).summaryandfailedEntitiesfor the result (implementation plan Section 10).For full flow, design deviations, configuration, and review focus areas, see the attached implementation plan.
How was this patch tested?
Unit and module tests were added or extended in this PR.
PurgeBatchOrchestratorTest,PurgeBatchExecutorTestAtlasEntityStoreV2TestPurgeServiceTestDeleteHandlerV1TestAdminResourceTest,AtlasBaseExceptionMapperTestAtlasClientV2Test,TestEntityMutationResponseaddEntityGUID dedupAdminPurgeTestDetailed test mapping: implementation plan Section 11.
Suggested verification commands: