#14471 - Clean up ingestion status when deleting the ingestion pipeline (#14592)

This commit is contained in:
Pere Miquel Brull 2024-01-06 18:31:29 +01:00 committed by GitHub
parent bea4be4e82
commit aa79bcb923
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,7 +141,12 @@ public class IngestionPipelineRepository extends EntityRepository<IngestionPipel
@Override
protected void postDelete(IngestionPipeline entity) {
// Delete deployed pipeline in the Pipeline Service Client
pipelineServiceClient.deletePipeline(entity);
// Clean pipeline status
daoCollection
.entityExtensionTimeSeriesDao()
.delete(entity.getFullyQualifiedName(), PIPELINE_STATUS_EXTENSION);
}
@Override