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

testing: demonstrate expected isolation properties #165

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

tgross
Copy link
Member

@tgross tgross commented Jul 21, 2024

Extend the unit tests to cover the expected isolation levels for avoiding dirty reads, non-repeatable reads, and phantom reads.

These tests are intended to be demonstrative rather than exhaustive. They provide a guide for developers as to what behaviors to expect from applications consuming the library rather than robustly verifying the behavior under load and high concurrency. That is, they can show that an implementation is grossly incorrect but cannot show that an implementation is correct.

(I've opened this PR mostly to anchor an internal discussion for proposed iterator changes.)

Extend the unit tests to cover the expected isolation levels for avoiding dirty
reads, non-repeatable reads, and phantom reads.

These tests are intended to be demonstrative rather than exhaustive. They
provide a guide for developers as to what behaviors to expect from applications
consuming the library rather than robustly verifying the behavior under load and
high concurrency. That is, they can show that an implementation is grossly
incorrect but cannot show that an implementation is correct.
@absolutelightning
Copy link

absolutelightning commented Jul 21, 2024

Thanks @tgross. I think we should keep these in main branch.

Copy link
Member

@jmurret jmurret 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 for adding these!

@tgross tgross merged commit 0fb44d6 into hashicorp:main Jul 23, 2024
1 check 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.

4 participants