Conditional put fails occassionally

Aug 18, 2010 at 2:14 PM
Edited Aug 18, 2010 at 2:14 PM
Hello, we have a class which has a version controlled DateTime field called LastModified, and our code would do a read first, modify some of the non-version controlled fields and then do a put to update the object in SimpleDB. However, this operation fails occassionally (rathough 1 in about 1000 calls), and looking at some of the exception messages they are not results of multiple updates to the same object (i.e. two operations do consistent read at the same time and both tries to update so one fails while the other succeeds) which was our initial suspection. Having gone over our code several times without much luck, I'm just wondering if you have come across something similar before and are able to offer some insight into this problem? Thanks,
Aug 18, 2010 at 2:24 PM
Edited Aug 18, 2010 at 2:26 PM

Could you post the actual error messages?

This seems very closely related to the issue we discussed here (version properties not incremented on batch-put):

Any possibility this problem is caused by the same issue?

Aug 18, 2010 at 2:33 PM

Hi Ashley, this seems to be a different problem as for this particular type we're only doing single puts and shouldn't be affected by the issue associated with the batch put which we ran into before.