Skip to content
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

Revert allocation transaction committed #3491

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

jbaublitz
Copy link
Member

Related to #3274

@jbaublitz jbaublitz requested a review from mulkieran November 1, 2023 20:27
@jbaublitz jbaublitz self-assigned this Nov 1, 2023
@jbaublitz
Copy link
Member Author

/packit test

@jbaublitz
Copy link
Member Author

/packit test

1 similar comment
@jbaublitz
Copy link
Member Author

/packit test

Copy link
Member

@mulkieran mulkieran left a comment

Choose a reason for hiding this comment

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

This all looks good. One minor docs request.

src/engine/strat_engine/backstore/data_tier.rs Outdated Show resolved Hide resolved
@jbaublitz
Copy link
Member Author

I also made one PR revision that appeared to be required to avoid a panic in cases where we incorrectly calculate the amount of space to allocate from the backstore to the thinpool. I bumped into this due to a bug in #3274 that I intend to fix but it seems better to handle that case with an error in case we introduce another bug like that in the future.

@jbaublitz
Copy link
Member Author

Putting back in progress to look into one additional piece brought up by #3274.

@jbaublitz jbaublitz force-pushed the revert-transaction branch 2 times, most recently from 47df312 to 63a5aef Compare November 8, 2023 22:39
@jbaublitz
Copy link
Member Author

/packit test

@jbaublitz
Copy link
Member Author

I think this is ready for final review.

@jbaublitz
Copy link
Member Author

/packit test

@mulkieran
Copy link
Member

@jbaublitz Plz rebase when you get the chance.

@jbaublitz
Copy link
Member Author

/packit test

@mulkieran
Copy link
Member

@jbaublitz Plz rebase when you get the chance and we can merge this.

This code has two notable drawbacks that make it better to remove.

1. The code is never used as intended. All requests are immediately
followed by a commit. This does not justify the complexity required to
maintain the feature.
2. There is an assumption that will likely be broken in future commits
related to changes in stacking and metadata. The assumption is that
allocations are always driven by the backstore. If this assumption is
broken and allocations to reserve space for metadata are performed at
layers lower than the backstore, these layers don't have protections
against reserving the same space for two separate allocations and then
commiting them both.
@mulkieran mulkieran merged commit bb5f634 into stratis-storage:master Nov 16, 2023
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants