Skip to content

Commit

Permalink
fix: Discard compaction plan when closing dataSyncService (#34737)
Browse files Browse the repository at this point in the history
issue: #34736

---------

Signed-off-by: bigsheeper <[email protected]>
  • Loading branch information
bigsheeper authored Jul 17, 2024
1 parent 8e34c4c commit 3d9ec2a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/datanode/data_sync_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ func (dsService *dataSyncService) close() {
log.Info("dataSyncService flowgraph closed")
}

if dsService.compactor != nil {
log.Info("dataSyncService discarding compaction plans")
dsService.compactor.discardPlan(dsService.vchannelName)
log.Info("dataSyncService compaction plans discarded")
}

dsService.clearGlobalFlushingCache()
close(dsService.flushCh)

Expand Down

0 comments on commit 3d9ec2a

Please sign in to comment.