Skip to content
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

CAS, Transactions, entry locking while entry is being read. #42

Open
Tracked by #95
romalev opened this issue Sep 7, 2018 · 0 comments
Open
Tracked by #95

CAS, Transactions, entry locking while entry is being read. #42

romalev opened this issue Sep 7, 2018 · 0 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@romalev
Copy link
Owner

romalev commented Sep 7, 2018

Currently given implementation of this cluster manager contains lots of code that first reads an entry and then update or remove it - sort of CAS operation which is not synchronized by consul agent.

Imagine a scenario where entry is being read by Alice in order to get replaced (or removed or updated) and in the meanwhile Bob wants to update same entry and he actually does. Bob's write takes place before Alice proceeds which means Alice's read value is not consistent anymore with central storage. Question: Are we allowing Alice's write forcibly to take place or should we come up with something like

  • CAS;
  • entry locking;
  • applying consul transactions;

to abort Alice's write ? It has to be investigated.

@romalev romalev added question Further information is requested help wanted Extra attention is needed labels Sep 7, 2018
@romalev romalev added this to the First prod release milestone Nov 2, 2018
@romalev romalev removed this from the First prod release milestone Nov 13, 2018
@romalev romalev mentioned this issue Dec 20, 2018
5 tasks
@romalev romalev added this to the Second major release milestone Dec 20, 2018
@romalev romalev removed this from the Second major release milestone Apr 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant