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
txn: add watermark #132
txn: add watermark #132
Conversation
4172267
to
fabeae3
Compare
Will rebase onto master once #129 merged. |
A little bit weird, we will get thread sanitizer error if we use yatp. For example, https://github.com/tikv/agatedb/runs/6705381794?check_suite_focus=true. |
So I use standard library to spawn threads. |
This is a known issue of crossbeam-epoch. If we want to use crossbeam channel in AgateDB, we will need to disable thread sanitizer check (or allow it to ignore crossbeam-related structures). Few projects will run tests with sanitizers. I think we can periodically check address / leak / thread sanitizer when things go wrong, and simply remove sanitizer checks from CI. |
But when I use standard library to spawn thread, the issue disappears. Sort of strange... |
Maybe by accident or some magic 🤪 |
@GanZiheng Please fix conflicts. |
Signed-off-by: GanZiheng <ganziheng98@gmail.com>
Signed-off-by: GanZiheng <ganziheng98@gmail.com>
Signed-off-by: GanZiheng <ganziheng98@gmail.com>
843e47b
to
488a2dc
Compare
Signed-off-by: GanZiheng <ganziheng98@gmail.com>
Signed-off-by: GanZiheng <ganziheng98@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #132 +/- ##
==========================================
+ Coverage 83.65% 85.60% +1.94%
==========================================
Files 35 36 +1
Lines 6230 6753 +523
==========================================
+ Hits 5212 5781 +569
+ Misses 1018 972 -46 |
Signed-off-by: GanZiheng <ganziheng98@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WaterMarkInner
can be avoided, though LGTM
/merge |
Based on
Signed-off-by: GanZiheng ganziheng98@gmail.com