Add progress feedback to ipfs get
#10339
Labels
effort/days
Estimated to take multiple days, but less than a week
help wanted
Seeking public contribution on this issue
kind/enhancement
A net-new feature or improvement to an existing feature
P2
Medium: Good to have, but can wait until someone steps up
Checklist
Description
Background
There are some situations in which
ipfs get
doesn't print enough progress feedback when fetching a large enough CID, e.g. 25mb.For example, I was trying to fetch the CID
QmRhzWfzRHHmMirAQrBimyuiaCRFbPprWLuyw3cBqmHUQy
which is comprised of 103 blocks.I ran
ipfs get QmRhzWfzRHHmMirAQrBimyuiaCRFbPprWLuyw3cBqmHUQy
which was hanging with no output (not even saying that the root block was retrieved). To make matters more confusing, I was debugging and ranipfs routing findprovs QmRhzWfzRHHmMirAQrBimyuiaCRFbPprWLuyw3cBqmHUQy
and saw my PeerID as a provider of that CID.I later discovered that only the root block
QmRhzWfzRHHmMirAQrBimyuiaCRFbPprWLuyw3cBqmHUQy
was retrievable and my node fetched it, however, it nothing was indicated about that in theipfs get QmRhzWfzRHHmMirAQrBimyuiaCRFbPprWLuyw3cBqmHUQy
output.Current situation
From my testing, it seems that there's no output after the root block is fetched. It seems the progress feedback output only starts one of the first child blocks is fetched.
Another thing I noticed is that the feedback is always in size with no block information, e.g.
Suggestion
When the
ipfs get
command retrieves the root block and it contains alinks
array, it could print out the CID and the number of blocks left to fetch (which can grow if fetching a directory as the dag is traversed) in addition to the number of bytes fetched, which is already printed out (even though it seems only after the first child block is fetched)Extending this to other commands
We could also extend this feedback to other commands such as:
ipfs pin add
ipfs cat
The text was updated successfully, but these errors were encountered: