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

Change assert to runtime check. #359

Closed
wants to merge 1 commit into from
Closed

Change assert to runtime check. #359

wants to merge 1 commit into from

Conversation

cdesjardins
Copy link
Contributor

I had a system that was constantly hitting this assert, after making
this change it recovered immediately.

I had a system that was constantly hitting this assert, after making
this change it recovered immediately.
@geky geky added needs minor version new functionality only allowed in minor versions next minor v2.2 labels Jan 27, 2020
@geky
Copy link
Member

geky commented Jan 27, 2020

Hi @cdesjardins, thanks for creating a PR!

I'm of the opinion this check should actually be done when we first find the bad block addresses (so in lfs_file_open, lfs_dir_open, lfs_stat, or similar).

I want to see if that can accomplished before the next release, if not I'll going ahead merge this in.

@geky geky removed the needs minor version new functionality only allowed in minor versions label Jan 28, 2020
@geky
Copy link
Member

geky commented Feb 24, 2020

Ok! I've merged this into #372 and added tests and a couple of other checks.

I looked into different implementations of this check, but now think your original proposal is the best solution. Thanks again for the PR.

I will close this when #372 is merged. I don't think GitHub is smart enough to track cherry-picks across PRs.

@geky geky changed the base branch from master to test-revamp March 30, 2020 02:47
@geky
Copy link
Member

geky commented Mar 30, 2020

Closing as this has been merged into #372, unfortunately I don't think I merged it in a way that is reflected here in GitHub.

@geky geky closed this Mar 30, 2020
@geky
Copy link
Member

geky commented Apr 1, 2020

Thanks for the contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants