-
-
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
ipfs ls
API commands hang while ipfs object ls
and gateway listing works
#3120
Comments
@dokterbob Yeah, thats because |
It's interesting - and potentially problematic - to find that resolving the type of a resource takes so long. As far as I know, the first block of the particular resource needs to be fetched in order to look at its protobuf to resolve the type. However, it seems that in some cases where the linked-to resource is actually available, resolving the type still takes a very long time. I have yet to reliably verify this as it is hard to bring IPFS back into a 'clean' state. This makes me wonder: is If not, would it perhaps make sense to serialize object metadata out to containing directories, similar to object size? This would also entail the full mimetype, allowing for a much faster, more pretty rendering of indexes and seems to make proper FS integration a lot more feasable. |
@dokterbob Yeah, thats definitely being considered when we move to ipld. We will be able to more easily keep extra information in the directory object to support this. It definitely is kinda weird that |
It seems a bit worse than what you suggested. Even for available resources, listing them with type resolving takes forever(-ish) for large directories. Executing |
You can quickly resolve the directories by using |
I would like to re-open this issue as we keep on running into this on a Mobian platform (ARM64). |
Version/Platform/Processor information (from
ipfs version --all
):0.4.3rc3 and 0.4.2
Type (bug, feature, meta, test failure, question): bug
Area (api, commands, daemon, fuse, etc): commands
Priority (from P0: functioning, to P4: operations on fire): P1
Description:
For a lot of hashes, executing
ipfs ls
(oripfs file ls
) gets stuck (or is at least tediously slow) whileipfs files ls
(after cp'ing the file into MFS) andipfs objects ls
works normally. Whenipfs files ls -l
is executed, however, the same lag occurs.My suspicion is that this is due to the way file sizes are calculated, which is different from object sizes. However, given that object sizes seems ok for the gateway interface, perhaps we should normalize to this and create and make calculating the 'real' file sizes optional.
Related to #3056.
The text was updated successfully, but these errors were encountered: