TransactionException

18 views
Skip to first unread message

Abdulla

unread,
Jul 23, 2010, 8:21:23 AM7/23/10
to Deuce-STM
Hi,

I am writing an STM algorithm using DeuceSTM. When I want to stop the
execution of the transaction (Abort) i throw an exception which
suppose to reinitialize the context and retry. The problem I am having
is that the context stops the execution of the program and prints out
the exception message. I have not specified the number of retires
(@Atomic).

This is the message I get :
Exception in thread "Thread-1"
org.deuce.transaction.TransactionException: Fail on validation


Here is the code:
private int Validate() throws TransactionException {
int time;
while(true) {
time = global_lock.get();
if((time&1) != 0) {
continue;
}
if(!readSet.valueValidation())
{
throw VALIDATION_FAILURE_EXCEPTION;
}

if(time == global_lock.get()) {
return time;
}
}
}



Guy Korland

unread,
Jul 23, 2010, 6:33:58 PM7/23/10
to deuce-stm
Can you send me a full test case?

Thanks,
Guy Korland





--
You received this message because you are subscribed to the Google Groups "Deuce-STM" group.
To post to this group, send email to deuc...@googlegroups.com.
To unsubscribe from this group, send email to deuce-stm+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/deuce-stm?hl=en.


Reply all
Reply to author
Forward
0 new messages