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(core): restore cache journal mode to TRUNCATE and tweak tokio test in CacheDB #18469

Merged
merged 1 commit into from
Mar 28, 2023

Conversation

mmastrac
Copy link
Contributor

Fast-follow on #18401 -- the reason that some tests were panicking in the CacheDB impl Drop was that the cache itself was being dropped during panic and the runtime may or may not still exist at that point. We can reduce the actual tokio runtime testing to where it's needed.

In addition, we return the journal mode to TRUNCATE to avoid the risk of data corruption.

@mmastrac mmastrac marked this pull request as ready for review March 28, 2023 01:09
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

LGTM

@mmastrac mmastrac merged commit c65149c into denoland:main Mar 28, 2023
mmastrac added a commit that referenced this pull request Mar 31, 2023
…t in CacheDB (#18469)

Fast-follow on #18401 -- the reason that some tests were panicking in
the `CacheDB` `impl Drop` was that the cache itself was being dropped
during panic and the runtime may or may not still exist at that point.
We can reduce the actual tokio runtime testing to where it's needed.

In addition, we return the journal mode to `TRUNCATE` to avoid the risk
of data corruption.
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.

None yet

2 participants