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

Add rollback of Pool setup when starting a pool fails #3285

Merged
merged 4 commits into from
Apr 4, 2023

Conversation

jbaublitz
Copy link
Member

Related to #3274

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.

There was one tiny thing I noticed a while back when glancing at it several days ago. Doing a serious pass now.

src/engine/strat_engine/names.rs Outdated Show resolved Hide resolved
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 seems to me to hang together very well. I have a few requests for comments, but that's it.

src/engine/strat_engine/liminal/liminal.rs Outdated Show resolved Hide resolved
src/engine/strat_engine/thinpool/thinpool.rs Show resolved Hide resolved
src/engine/strat_engine/liminal/identify.rs Outdated Show resolved Hide resolved
@jbaublitz jbaublitz force-pushed the setup-rollback branch 2 times, most recently from a743f34 to bb78afe Compare March 27, 2023 18:51
@mulkieran
Copy link
Member

Addressing a problem with behavior when some filesystems can be torn down but not others.

@jbaublitz
Copy link
Member Author

@mulkieran I think the most recent commit should resolve that.

@jbaublitz jbaublitz force-pushed the setup-rollback branch 2 times, most recently from fae42f0 to be6c534 Compare March 31, 2023 14:14
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.

I think it would be better if the teardown of a thin device was also idempotent. When we stop pools, removal is handled correctly, which is good. But we may find another way to get ourselves into the same phantom filesystem problem that we had beforee. I think that tearing down filesystems could use the same approach as teardown for the other devices, and be made idempotent that way.

@mulkieran
Copy link
Member

I think it would be better if the teardown of a thin device was also idempotent. When we stop pools, removal is handled correctly, which is good. But we may find another way to get ourselves into the same phantom filesystem problem that we had beforee. I think that tearing down filesystems could use the same approach as teardown for the other devices, and be made idempotent that way.

I would also be willing to defer consideration of this proposal until later. It may not gain us much during any remotely normal operation.

@mulkieran mulkieran merged commit 331cbd6 into stratis-storage:master Apr 4, 2023
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