-
Notifications
You must be signed in to change notification settings - Fork 338
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
Can't pin large files uploaded with chunks #4864
Comments
Try using the AFAIK, tags have nothing to do with chunk retention but only serve as a status feedback with counters showing the state of the upload. Tags do not affect uploading, pushing, propagation, retention, nor pinning from all of the source code that I've read. Seems like a case of mis-understanding what tags are. Oh, and one advantage of the |
Thanks, your are right! Probably there is a misunderstanding of what really a tag is. But this rise other questions:
|
Remember, there's an ability to explicitly create a tag (https://docs.ethswarm.org/api/#tag/Tag/paths/~1tags/post) and supply it on each individual You are correct that there is no support for pinning individual chunks in a node. IMHO, this is lacking in the current pinning implementation. When using the But if you do a And a detail on the implementation of pruning, in actual fact the pinning store is a parent/child relationship with the root reference as the parent and every single chunk reference as the children. The prune only needs to check if the chunk is in the pin children store. Well, it doesn't really check, but the I did implement a hack on the Oh, and one other difference between |
ldeffenb@4ad599f is the commit of my enhanced This commit also adds offset and limit support to the |
Oh, and if you want to see the |
Thanks for your assistance! Unfortunately to me, I don't have advanced Go knowledge. I'm just learning to read it, so I've tried to understand something about implementations from code, but to get details would require too much time at moment. I'm trying to implement with C# a reverse proxy with chunk cache on db to implement chunks pinning, because is a faster solution to me. A lot of code has already been implemented with my bee.net project. At least I can debug on-fly any kind of problem I will encounter. Anyway, I leave open this issue because a better pinning implementation is really needed |
There is and open PR for |
Context
Bee 2.2.0
Summary
Even using tags to upload with sessions, is not possible to pin large files providing all the chunks.
Expected behavior
I expect when using tags that chunks are preserved on node until the tag is released. A pinning request on root hash with tag alive, and all chunks uploaded, should succeed.
Actual behavior
Instead, also with tag alive, is possible that successive pinning request will fail returning error 404, and making pinning with chunks actual impossible.
Steps to reproduce
Try to upload a large file with chunks on a connected node, using tags. A successive request to pin the root may fail with 404 error code.
Possible solution
The text was updated successfully, but these errors were encountered: