@@ -501,7 +501,7 @@ func (c *BlocksCleaner) deleteUserMarkedForDeletion(ctx context.Context, userLog
501
501
return err
502
502
}
503
503
504
- if deleted , err := bucket .DeletePrefixConcurrent (ctx , userBucket , bucketindex .MarkersPathname , userLogger , defaultDeleteBlocksConcurrency ); err != nil {
504
+ if deleted , err := bucket .DeletePrefix (ctx , userBucket , bucketindex .MarkersPathname , userLogger , defaultDeleteBlocksConcurrency ); err != nil {
505
505
return errors .Wrap (err , "failed to delete marker files" )
506
506
} else if deleted > 0 {
507
507
level .Info (userLogger ).Log ("msg" , "deleted marker files for tenant marked for deletion" , "count" , deleted )
@@ -513,15 +513,15 @@ func (c *BlocksCleaner) deleteUserMarkedForDeletion(ctx context.Context, userLog
513
513
}
514
514
515
515
func (c * BlocksCleaner ) deleteNonDataFiles (ctx context.Context , userLogger log.Logger , userBucket objstore.InstrumentedBucket ) error {
516
- if deleted , err := bucket .DeletePrefixConcurrent (ctx , userBucket , block .DebugMetas , userLogger , defaultDeleteBlocksConcurrency ); err != nil {
516
+ if deleted , err := bucket .DeletePrefix (ctx , userBucket , block .DebugMetas , userLogger , defaultDeleteBlocksConcurrency ); err != nil {
517
517
return errors .Wrap (err , "failed to delete " + block .DebugMetas )
518
518
} else if deleted > 0 {
519
519
level .Info (userLogger ).Log ("msg" , "deleted files under " + block .DebugMetas + " for tenant marked for deletion" , "count" , deleted )
520
520
}
521
521
522
522
if c .cfg .CompactionStrategy == util .CompactionStrategyPartitioning {
523
523
// Clean up partitioned group info files
524
- if deleted , err := bucket .DeletePrefixConcurrent (ctx , userBucket , PartitionedGroupDirectory , userLogger , defaultDeleteBlocksConcurrency ); err != nil {
524
+ if deleted , err := bucket .DeletePrefix (ctx , userBucket , PartitionedGroupDirectory , userLogger , defaultDeleteBlocksConcurrency ); err != nil {
525
525
return errors .Wrap (err , "failed to delete " + PartitionedGroupDirectory )
526
526
} else if deleted > 0 {
527
527
level .Info (userLogger ).Log ("msg" , "deleted files under " + PartitionedGroupDirectory + " for tenant marked for deletion" , "count" , deleted )
@@ -781,7 +781,7 @@ func (c *BlocksCleaner) cleanPartitionedGroupInfo(ctx context.Context, userBucke
781
781
782
782
if extraInfo .status .CanDelete || extraInfo .status .DeleteVisitMarker {
783
783
// Remove partition visit markers
784
- if _ , err := bucket .DeletePrefixConcurrent (ctx , userBucket , GetPartitionVisitMarkerDirectoryPath (partitionedGroupInfo .PartitionedGroupID ), userLogger , defaultDeleteBlocksConcurrency ); err != nil {
784
+ if _ , err := bucket .DeletePrefix (ctx , userBucket , GetPartitionVisitMarkerDirectoryPath (partitionedGroupInfo .PartitionedGroupID ), userLogger , defaultDeleteBlocksConcurrency ); err != nil {
785
785
level .Warn (userLogger ).Log ("msg" , "failed to delete partition visit markers for partitioned group" , "partitioned_group_info" , partitionedGroupInfoFile , "err" , err )
786
786
} else {
787
787
level .Info (userLogger ).Log ("msg" , "deleted partition visit markers for partitioned group" , "partitioned_group_info" , partitionedGroupInfoFile )
0 commit comments