Skip to content

Snapshot Term/whole TxID in KV so as to report status correctly in multi-threaded configuration#1288

Merged
achamayou merged 14 commits intomicrosoft:masterfrom
achamayou:kv_txid
Jun 15, 2020
Merged

Snapshot Term/whole TxID in KV so as to report status correctly in multi-threaded configuration#1288
achamayou merged 14 commits intomicrosoft:masterfrom
achamayou:kv_txid

Conversation

@achamayou
Copy link
Member

@achamayou achamayou commented Jun 15, 2020

Replaces #1252

In a nutshell, this change means that the KV is always made aware of what view (*) transactions are executing in. This enables accurate Transaction ID reporting in a multi-threaded context.

(*) although it really is the view, and that's how it's communicated externally to users, the code deliberately refers to it as term internally, because there's already a concept called a view in the KV, which is really a TxTableView. Naming is hard. I'm open to suggestions here.

@achamayou achamayou requested a review from a team as a code owner June 15, 2020 11:07
@achamayou achamayou mentioned this pull request Jun 15, 2020
@ghost
Copy link

ghost commented Jun 15, 2020

kv_txid@9429 aka 20200615.54 vs master ewma over 50 builds from 8847 to 9426
images

@achamayou
Copy link
Member Author

Depends on #1286

@codecov-commenter
Copy link

Codecov Report

Merging #1288 into master will decrease coverage by 0.01%.
The diff coverage is 70.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1288      +/-   ##
==========================================
- Coverage   67.34%   67.32%   -0.01%     
==========================================
  Files         122      122              
  Lines        9375     9426      +51     
==========================================
+ Hits         6313     6346      +33     
- Misses       3062     3080      +18     
Flag Coverage Δ
#unit_ 67.32% <70.00%> (-0.01%) ⬇️
Impacted Files Coverage Δ
src/host/ledger.h 53.92% <0.00%> (ø)
src/kv/kv_types.h 46.88% <ø> (ø)
src/kv/view_containers.h 100.00% <ø> (ø)
src/consensus/raft/raft.h 76.06% <50.00%> (-0.54%) ⬇️
src/node/history.h 43.07% <57.14%> (-0.42%) ⬇️
src/kv/store.h 82.73% <74.36%> (-1.01%) ⬇️
src/kv/tx.h 82.61% <75.00%> (-1.52%) ⬇️
src/consensus/raft/raft_types.h 93.33% <100.00%> (+1.67%) ⬆️
src/node/rpc/frontend.h 64.69% <100.00%> (ø)

@achamayou achamayou merged commit aa85cd8 into microsoft:master Jun 15, 2020
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