1

Closed

Retry upon validation failure

description

It should be easy to retry a tx if validation fails, i.e. some other tx modified data accessed by the tx. Other STM implementation provide some kind of "retry facility" to achieve this.
 
A first step could be to have a method on NstmMemory, e.g. ExecuteAtomically(), which automatically opens a tx and runs a delegate. If a validation error happens, it runs the tx again.
 
How often the tx should be retried, with what kind of delay etc. could be passed to the methods as parameters.
 
Automatic retry also needs to be made available for [NstmAtomic] methods.
 
To signal validation failure a special NstmValidationFailedException should be introduced.
Closed Aug 4, 2007 at 11:45 PM by ralfw
Fixed in rel. 1.0.0.222

comments