-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Give up trying to pin a CID after a given time threshold #812
Comments
To be discussed with @alanshaw |
Discussed with @alanshaw @flea89 @francois-potato. All things that cannot be pinned, will be added to a separate queue that keeps growing. In the meantime cluster will keep trying to pin it. This is not an immediate concern but in the future cluster might fall over if the queue grows too much. We need to find a way for these CIDs to be dropped from cluster. We need to define the threshold (i.e. after how long, not how many times tried). We also need to find a way to surface this information to the user - a sort of perma-failed status. |
If you send a pinning request for CID, but CID doesn't exist / node is offline, our PIN will stay stuck in "queued" status.
We should abandon the operation after a given time threshold has passed.
Update
This can be taken care of by the Pinning API in Elastic Provider, when it takes over from Cluster.
Impact
Acceptance Criteria
giveUpThreshold
, the Cluster should stop trying to get and pin a given CID, if there are no more recentPinningRequests
for the same CID or UploadsgiveUpThreshold
should report afailed
status if there are no more recentPinningRequests
.giveUpThreshold
should report their effective status, based on cluster state.Notes.
CID_A
, which is "expired" but a chunked upload for the sameCID_A
exists. In this case, we might have 2 scenarios:giveUpThreshold
, is 1 day. Could be even smaller, let's parametrise it for easy updating.We should consider never sending a failed status until threshold is reached.
The text was updated successfully, but these errors were encountered: