Skip to content

Rely on read tx for the hashtable consistency #434

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

Merged
merged 9 commits into from
Oct 12, 2023

Conversation

danielealbano
Copy link
Owner

Now that every operation on the hashtable is always behind a read or write transaction, it's not necessary to have to rely on a tricky logic and memory fences to ensure that a read will never cause an issue if a write changes something as they will never run in parallel.

The PR drops the memory fences, introduces some minor optimizations now that reads are consistent and clean up a lot of unnecessary logging.

The PR also contains a minor fix for a build warning when building C++ code (e.g. benchmarks or tests) and the necessary changes to update the set benchmark for the hashtable to the new paradigm implemented.

@danielealbano danielealbano added the enhancement New feature or request label Oct 12, 2023
@danielealbano danielealbano added this to the v0.5 milestone Oct 12, 2023
@danielealbano danielealbano self-assigned this Oct 12, 2023
@danielealbano danielealbano enabled auto-merge (squash) October 12, 2023 20:18
@codecov
Copy link

codecov bot commented Oct 12, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Files Coverage Δ
...hashtable/mcmp/hashtable_support_hash_search_avx.h 100.00% <100.00%> (ø)
...ashtable/mcmp/hashtable_support_hash_search_avx2.h 100.00% <100.00%> (ø)
...ashtable/mcmp/hashtable_support_hash_search_loop.h 100.00% <100.00%> (ø)
src/thread.h 100.00% <ø> (ø)
src/transaction.h 95.00% <100.00%> (+0.13%) ⬆️
src/storage/db/storage_db.c 59.80% <66.67%> (+0.10%) ⬆️
...uctures/hashtable/mcmp/hashtable_support_op_arch.c 92.81% <87.50%> (-0.23%) ⬇️

... and 1 file with indirect coverage changes

📢 Thoughts on this report? Let us know!.

@danielealbano danielealbano merged commit f4921c5 into main Oct 12, 2023
@danielealbano danielealbano deleted the feature/rely-on-read-tx-for-ht-consistency branch October 12, 2023 21:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Completed
Development

Successfully merging this pull request may close these issues.

1 participant