Could not rollback distributed transaction

203 views
Skip to first unread message

Sarmaad

unread,
Nov 19, 2012, 6:59:57 AM11/19/12
to rav...@googlegroups.com
Hi,

I have a stream of events send to a queue for denormalization.

I am using NSB to handle the events and storing models in raven.

Every now and again, I have a ConcurrencyException, which is fine, since NSB will retry the message.

However, raven is unable to rollback correctly leading to the bellow exception.

Regardless if the store was raven server or embedded, the issue still occurs. 

Any pointers please.. 

Raven Client & Embedded 1.2.2149-Unstable

Thanks


2012-11-19 22:46:17,317 [35] ERROR Raven.Client.Document.RavenClientEnlistment [
(null)] <(null)> - Could not rollback distributed transaction
System.IO.IsolatedStorage.IsolatedStorageException: Unable to delete file.
   at System.IO.IsolatedStorage.IsolatedStorageFile.DeleteFile(String file)
   at Raven.Client.Document.RavenClientEnlistment.Rollback(Enlistment enlistment
) in c:\Builds\RavenDB-Unstable-v1.2\Raven.Client.Lightweight\Document\RavenClie
ntEnlistment.cs:line 107

Oren Eini (Ayende Rahien)

unread,
Nov 19, 2012, 12:47:22 PM11/19/12
to rav...@googlegroups.com
Interesting, are you sure that you are using a distributed transaction, rather than a local transaction?
I identified a potential issue and fixed it, and that should be fixed on the next build.

Dan Bishop

unread,
Nov 20, 2012, 2:42:37 PM11/20/12
to rav...@googlegroups.com
Hi Oren, any chance you could point me to the commit you made in 1.2 to address this issue? I'm experiencing it very regularly when trying to startup multiple NServiceBus handlers (as described here: https://github.com/NServiceBus/NServiceBus/issues/757), using v1.0.980 of the client.

The MSDN docs for IsolatedStorageFile.DeleteFile recommend having auto-retry logic when attempting to delete a file due to the known issues with file system locks. Is this something that should be added to RavenDB?

Thanks,
Dan

Oren Eini (Ayende Rahien)

unread,
Nov 20, 2012, 2:43:53 PM11/20/12
to rav...@googlegroups.com
We haven't pushed this yet, but basically, we take care of this error.

John Simons

unread,
Nov 20, 2012, 5:59:06 PM11/20/12
to rav...@googlegroups.com
Oren,

Is there going to be a 1.0 patch release as well?

Oren Eini (Ayende Rahien)

unread,
Nov 21, 2012, 1:07:13 AM11/21/12
to rav...@googlegroups.com
If we can get a failing test
Reply all
Reply to author
Forward
0 new messages