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

Fix max dbs error #2192

Merged
merged 1 commit into from
Feb 23, 2022
Merged

Fix max dbs error #2192

merged 1 commit into from
Feb 23, 2022

Conversation

MarinPostma
Copy link
Contributor

@MarinPostma MarinPostma commented Feb 22, 2022

Factor the way we open environments to make sure they are always opened with the same options.

The issue was that indexes were first opened in snapshots with incorrect options, and heed cache returned an environment with incorrect open options on subsequent index open.

fix #2190

@Kerollmops Kerollmops marked this pull request as draft February 22, 2022 17:18
@MarinPostma MarinPostma force-pushed the fix-max-dbs branch 3 times, most recently from 44a21b5 to cc3ac7d Compare February 23, 2022 14:48
@MarinPostma MarinPostma added this to the v0.26.0 milestone Feb 23, 2022
Kerollmops
Kerollmops previously approved these changes Feb 23, 2022
Copy link
Member

@Kerollmops Kerollmops left a comment

Choose a reason for hiding this comment

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

Thank you @MarinPostma for the changes, it is indeed something that heed must do: keep the environments open in order to make sure that the program doesn't try to open them multiple times.
bors merge

@Kerollmops Kerollmops marked this pull request as ready for review February 23, 2022 16:10
bors bot added a commit that referenced this pull request Feb 23, 2022
2192: Fix max dbs error r=Kerollmops a=MarinPostma

Factor the way we open environments to make sure they are always opened with the same options.


The issue was that indexes were first opened in snapshots with incorrect options, and heed cache returned an environment with incorrect open options on subsequent index open.

fix #2190


Co-authored-by: ad hoc <postma.marin@protonmail.com>
@Kerollmops
Copy link
Member

bors cancel
@MarinPostma Could you please apply the Clippy changes first?

@bors
Copy link
Contributor

bors bot commented Feb 23, 2022

Canceled.

@MarinPostma
Copy link
Contributor Author

@Kerollmops yep it's done

Copy link
Member

@Kerollmops Kerollmops left a comment

Choose a reason for hiding this comment

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

Thank you very much, merging!
bors merge

@bors
Copy link
Contributor

bors bot commented Feb 23, 2022

@bors bors bot merged commit 09ee8e3 into main Feb 23, 2022
@bors bors bot deleted the fix-max-dbs branch February 23, 2022 16:42
@curquiza curquiza added the v0.26.0 PRs/issues solved in v0.26.0 label Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v0.26.0 PRs/issues solved in v0.26.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Internal on the stats route with snapshots enabled
3 participants