global lock

Paul Peregud paulperegud@REDACTED
Mon Nov 25 17:21:05 CET 2019


> global:trans/4 allows to set the number of retries, so one approach could be to set retries to 0 so *if* my understanding is correct, only 1 node would do the conflict resolution (the one that grabs the lock). If some kind soul can confirm that this is correct, thank you in advance. :)

That's not enough. Alice may detect the issue, grab the lock, resolve
the issue and release the lock before Bob receives the signal and
attempts to grab the lock. You need some kind of ConflictId ->
resolved :: boolean() mapping.



More information about the erlang-questions mailing list