Skip to content

Commit

Permalink
remove failed blob in mem
Browse files Browse the repository at this point in the history
  • Loading branch information
csdtowards committed Jul 17, 2024
1 parent a535992 commit f8f5d33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions disperser/batcher/batcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ func (b *Batcher) HandleSingleBatch(ctx context.Context) (uint64, error) {
if meta.BlobStatus == disperser.Failed {
log.Info("[batcher] disperse batch reach max retries", "key", metadata.GetBlobKey())
b.EncodingStreamer.RemoveEncodedBlob(metadata)
b.Queue.RemoveBlob(ctx, metadata)
}
}
}
Expand Down Expand Up @@ -394,6 +395,7 @@ func (b *Batcher) HandleSignedBatch(ctx context.Context) error {
log.Info("[batcher] submit aggregateSignatures reach max retries", "key", metadata.GetBlobKey())
b.EncodingStreamer.RemoveEncodedBlob(metadata)
b.sliceSigner.RemoveSignedBlob(ts[idx])
b.Queue.RemoveBlob(ctx, metadata)
}
}
}
Expand Down
1 change: 1 addition & 0 deletions disperser/batcher/slice_signer.go
Original file line number Diff line number Diff line change
Expand Up @@ -692,6 +692,7 @@ func (s *SliceSigner) aggregateSignature(ctx context.Context, signInfo *SignInfo
if meta.BlobStatus == disperser.Failed {
s.logger.Info("[signer] signing blob reach max retries", "key", metadata.GetBlobKey())
s.EncodingStreamer.RemoveEncodedBlob(metadata)
s.blobStore.RemoveBlob(ctx, metadata)
}
}
}
Expand Down

0 comments on commit f8f5d33

Please sign in to comment.