Closed boddumanohar closed 1 year ago
the main goal of this ticket is to allow repair in browser. I just tested the merged PR, I am still not able to get the perform repair and I getstat .: not implemented on js this error
The issue comes from https://github.com/0chain/gosdk/blob/staging/zboxcore/sdk/repairworker.go#L202, should we add an option in wasm where we don't perform a check for this?
currently during allocation repair, we download the entire file, divide into shards as per the updated allocation. This method has 2 problems:
An optimisation that can be done is to do repair on the fly by chunks. You could download a few chunks of data and shard it and upload it to the new blobber.
this downloaded chunk of data needs to be stored in ring buffer so that we don't take up any space on the local file system. This technique is very much needed to implement repair in browser.