rotationalio / honu

Adaptive consistency replication with reinforcement learning for large scale globally distributed storage.
BSD 3-Clause "New" or "Revised" License
12 stars 2 forks source link

Skip, stomp, and linear version history tracking in Update #19

Closed bbengfort closed 2 years ago

bbengfort commented 2 years ago

Adds an UpdateType return value to the db.Update method so callers can track what happens to the underlying version history. The types are directly connected to new Version comparison methods of similar names, which will hopefully make it easier for us to reason about whats happening in the version history and in anti-entropy in general.

For TestStomps, TestLinearFrom, and TestSkips - the following figure may be helpful in describing what the expected versions are:

Paper Journal 14 2

codecov[bot] commented 2 years ago

Codecov Report

Merging #19 (25a791e) into main (0d24e25) will increase coverage by 0.80%. The diff coverage is 59.25%.

:exclamation: Current head 25a791e differs from pull request most recent head 1d66529. Consider uploading reports for the commit 1d66529 to get more accurate results Impacted file tree graph

@@            Coverage Diff             @@
##             main      #19      +/-   ##
==========================================
+ Coverage   55.00%   55.81%   +0.80%     
==========================================
  Files          10       10              
  Lines         509      550      +41     
==========================================
+ Hits          280      307      +27     
- Misses        184      198      +14     
  Partials       45       45              
Impacted Files Coverage Δ
honu.go 46.34% <42.10%> (-1.86%) :arrow_down:
object/object.go 75.67% <100.00%> (+28.05%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 0d24e25...1d66529. Read the comment docs.