-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Concurrent add and pin doesn't work #5376
Comments
This is not new. It has been an issue since before 0.4.13. It looks like |
Wow, the pinner doesn't even have access to the pin lock. |
Let me know if there's anything I can do to help with this |
@Stebalien Currently in my system I have a queue that process IPFS pin requests, and a queue that processes IPFS file add requests, which is how I initially saw this issue occur, when one queue was attempting to add a file, and the other was attempting to pin something else Since the issue occurs will attempting to add a file with a pin, while also pinning; would a reasonable solution be to add files with no pin, then have a seperate process pin the content to my IPFS node? |
Test case:
The last two commands should block indefinitely. |
So, it turns out that we simply have a hidden requirement here: We need to take the GCLock before taking the pin lock. Actually, after thinking about this, we can't even take this lock from within |
... unless
ipfs add --pin=false
is specified. It looks like we're taking the pin lock too early somewhere.The text was updated successfully, but these errors were encountered: