mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-09 04:17:51 +00:00
add logging on error on DeleteFragmentFromStore in TTLRemoval loop (#2134)
This commit is contained in:
parent
6afd9202bd
commit
13b93d7795
1 changed files with 4 additions and 1 deletions
|
|
@ -880,7 +880,10 @@ func (s *Server) TTLRemoval(ctx context.Context) {
|
|||
|
||||
if timeSince >= field.Options().TTL {
|
||||
for _, shard := range field.AvailableShards(true).Slice() {
|
||||
s.holder.txf.DeleteFragmentFromStore(index.Name(), field.Name(), view.name, shard, nil)
|
||||
err := s.holder.txf.DeleteFragmentFromStore(index.Name(), field.Name(), view.name, shard, nil)
|
||||
if err != nil {
|
||||
s.logger.Errorf("view: %s, shard: %d, ttl delete fragment: %s", shard, viewName, err)
|
||||
}
|
||||
}
|
||||
|
||||
err := s.defaultClient.api.DeleteView(ctx, index.Name(), field.Name(), view.name)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue