Skip to content
This repository has been archived by the owner on Jun 27, 2023. It is now read-only.

Conversation

schomatis
Copy link
Contributor

@schomatis schomatis commented Aug 5, 2021

Originally from #100 (removing the internal timeout indeed simplified the sizeBelowThreshold logic significantly), but while refactoring this I uncovered an error in the logic: if we can't fetch enough shards to evaluate size against the threshold we error in the remove child but only after actually doing the remove. We now evaluate first and change state after.

The patch is small but should be reviewed in detail as it touches the core switch logic.

@schomatis schomatis self-assigned this Aug 5, 2021
@schomatis schomatis mentioned this pull request Aug 5, 2021
4 tasks
@schomatis schomatis force-pushed the schomatis/directory/unsharding-split/remove-timeout-refactor branch from 78c14df to 10ac163 Compare August 6, 2021 15:05
@schomatis schomatis force-pushed the schomatis/directory/unsharding-split/remove-timeout-refactor branch from 10ac163 to e685e0a Compare August 6, 2021 15:10
@schomatis schomatis marked this pull request as ready for review August 6, 2021 15:11
hamt/hamt.go Outdated Show resolved Hide resolved
hamt/hamt.go Outdated Show resolved Hide resolved
hamt/hamt.go Outdated Show resolved Hide resolved
io/directory.go Outdated Show resolved Hide resolved
Copy link
Contributor

@aschmahmann aschmahmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me. There may be some things to iron out once #102 and #103 are done and we can look at everything together (the semi-split PRs is a bit confusing, but not worth fixing right now)

@schomatis schomatis merged commit 6d48cca into schomatis/directory/unsharding Aug 26, 2021
@schomatis schomatis deleted the schomatis/directory/unsharding-split/remove-timeout-refactor branch August 26, 2021 16:32
schomatis added a commit that referenced this pull request Oct 22, 2021
* fix(dir): remove timeout and evaluate switch *before* removing entry

* BLOCKING: temporary fix

* remove Shard cid not used and not maintained

* update blocking readme

* resolve FIXME

* fix: add back concurrent option in dag.walk

* decouple switch from directory downgrade
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants