privacylab / talek

a Private Publish Subscribe System
BSD 2-Clause "Simplified" License
47 stars 5 forks source link

Consistency and Safety of Write Epoch application #42

Closed willscott closed 7 years ago

willscott commented 7 years ago

The initial implementation of this functionality in #39 uses a NextEpoch call in the follower API, but because this goes along a separate channel within the Shard, it may be inconsistent in when it is applied in different replicas.

Probably, adding a field to WriteArgs (or different structs passed between servers versus the client-server interface, preferably) is going to be an easier long-term way to do this, but required a it more refactoring than this initial implementation.

ryscheng commented 7 years ago

Current NextEpoch call will most certainly introduce inconsistencies.

The current proposal is to add a field into WriteArgs such that when the Writes are serialized, we know exactly when to flip to the next Epoch

willscott commented 7 years ago

epochs are folded back into the serialized write pipeline in #51

willscott commented 7 years ago

closing as obsolete