This repository has been archived by the owner on Jun 27, 2023. It is now read-only.
Do not add an internal timeout for "extra" fetches used to compute directory size in the unsharding algorithm #100
Labels
need/triage
Needs initial labeling and prioritization
Continuation and expansion of #94 (comment). Discussing in its own issue as I think this might be too long for a review thread.
The final advice there was to remove the timeout and block on the fetch. I'm not challenging the given advice but giving the full context to make sure we're aligned here since this can have a potentially negative UX effect.
Brief background on the unsharding algorithm:
GetNode
.The user asked to do an add/remove operation but it may not be aware that it entails a potentially big fetch of shards well beyond the ones that were needed for the original operation.
Following this advice we would then remove the timeout and depend entirely on the client when to stop the operation the same way it had to, even before the sharding feature, as an add/remove operation can always be blocking if we don't find the necessary shards to operate on.
The advantage is the reduction of complexity as explained by Steven in the original comment.
The potential disadvantage is depending on a user-defined timeout that was designed for specific add/remove operations and not for
massivethese "extra" fetches that might exceed the ones needed originally by a noticeable degree.If we're comfortable going this way a simple 'go for it' is enough; no need to keep expanding on the motivation to remove the timeout.
The text was updated successfully, but these errors were encountered: