ipfs/kubo

MFS remote pinning policy: log ERROR if pin failed

Open

#7.917 geöffnet am 16. Feb. 2021

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Go (2.725 Forks)batch import
P2effort/hoursexp/intermediategood first issuehelp wantedkind/enhancementstatus/readytopic/pinning

Repository-Metriken

Stars
 (13.906 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 4T 2h) (28 gemergte PRs in 30 T)

Beschreibung

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 its pinned or failed, and if it's the latter, print ERROR into remotepinning/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?

Contributor Guide