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

Use a temporary file for the fakedatastore #5815

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

sorindumitru
Copy link
Collaborator

With a in memory sqlite datastore the database gets cleaned up when all connections to it get closed. If that happens, the next connection to be opened will see an empty database and usually error out.

I've noticed this in tests ocassionally and this seems to make running the db using not fail. For example this seems to fix #5789 and #5774 . I think it's worth testing it out for a while to see if those issues resurface.

Copy link
Member

@amartinezfayo amartinezfayo 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 @sorindumitru!

@amartinezfayo amartinezfayo added this to the 1.11.2 milestone Jan 28, 2025
@sorindumitru sorindumitru force-pushed the fakedatastore branch 3 times, most recently from 3bbe7ba to 460bf3c Compare February 3, 2025 10:43
With a in memory sqlite datastore the database gets cleaned up when all connections to it get closed. If that happens, the next connection to be opened will see an empty database and usually error out.

I've noticed this in tests ocassionally and this seems to make running the db using  not fail.

Signed-off-by: Sorin Dumitru <[email protected]>
@sorindumitru sorindumitru merged commit ba81582 into spiffe:main Feb 3, 2025
35 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.

Flaky test TestUpstreamProcessTaintedAuthority
2 participants