MFS remote pinning policy: log ERROR if pin failed #7917
Labels
effort/hours
Estimated to take one or several hours
exp/intermediate
Prior experience is likely helpful
good first issue
Good issue for new contributors
help wanted
Seeking public contribution on this issue
kind/enhancement
A net-new feature or improvement to an existing feature
P2
Medium: Good to have, but can wait until someone steps up
status/ready
Ready to be worked
topic/pinning
Topic Pinning (local and remote)
go-ipfs 0.8.0-rc2 dispatches remote pin request but does not act on its status, so without manual inspection it is possible to miss the fact that MFS pinning (
Pinning.RemoteServices.*.Policies.MFS
, #7913) stopped working.I believe we should keep checking pin status every
RepinInterval
until itspinned
orfailed
, and if it's the latter, print ERROR intoremotepinning/mfs
logger. Pinning may fail for multiple reasons, main ones is some arbitrary timeout to find a provider for the data, another one is when you try to pin DAG bigger than allowed quota.By printing error on MFS pin failure, node operator will be able to notice that remote pinning stopped working due to one of mentioned reasons.
cc #7559 @aschmahmann does this sound sensible?
The text was updated successfully, but these errors were encountered: