Skip to content

Drop containers when unpaid #3691

@carpawell

Description

@carpawell

Is your feature request related to a problem? Please describe.

This is a tough feature that was introduced in v0.50.0 with WARN logs only. Check that any public network logged unpaid containers without any errors and only containers that should be removed.

Describe the solution you'd like

Uncomment

// TODO: delete container after v0.50.0 release.
//l.Info("deleting unpaid container", zap.Stringer("cID", cID), zap.Int64("unpaidSince", unpaidSince))
//
//err := s.DeleteContainer(context.Background(), cID)
//if err != nil {
// l.Warn("cannot delete unpaid container", zap.Stringer("cID", cID), zap.Error(err))
// continue
//}
l.Info("WARNING: unpaid container will be deleted in the next release",
zap.Stringer("cID", cID), zap.Int64("unpaidSince", unpaidSince))
}
.

Describe alternatives you've considered

-

Additional context

#3650

Metadata

Metadata

Assignees

No one assigned

    Labels

    I3Minimal impactS4RoutineU3RegularenhancementImproving existing functionalityneofs-storageStorage node application issues

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions