Ayende,
Disabling the caching didn't seem to have any affect (assuming the
following is the proper way to configure that):
documentStore = new DocumentStore { ConnectionStringName =
connectionStringNames.DocumentDatabase };
documentStore.Conventions.ShouldCacheRequest = url => false;
documentStore.Initialize();
Giving a representative sample is pretty difficult (I'll see if I can
put something simple together) because the infrastructure of the
application is pretty heavily layered.
Essentially, it's an
asp.net mvc application in which every controller
action runs within a transaction scope...usually both nhibernate and
ravendb operate within the scope. The new update seems to fail in this
type of scenario for whatever reason.
So something like
' Assuming: Operating within TransactionScope.....
Public Sub SaveUserPreferences(ByVal preferences As
UserPreferencesDetails)
Dim documentId = CreateDocumentIdFor(preferences.UserId)
Dim userPrefs = Session.Load(Of UserPreferences)
(documentId)
If userPrefs Is Nothing Then
userPrefs = New UserPreferences(documentId,
preferences.UserId, preferences.Preferences)
Session.Store(userPrefs)
Else
userPrefs.Preferences = preferences.Preferences
End If
Session.SaveChanges()
End Sub
Causes:
Raven.Http.Exceptions.ConcurrencyException : A document with key:
'userpreferences/1' is currently created in another transaction
To be thrown.....
Honestly, I'm at the point where I'm considering reverting back to
build 206 because it had no such problem in this scenario.
If there's further details you think would be helpful for me to post,
please don't hesitate to ask.
On Jan 26, 1:50 am, Ayende Rahien <
aye...@ayende.com> wrote:
> Well... Can you share the actual code?
> It might be that caching ignores the ambient transaction
>
>
>
> On Tue, Jan 25, 2011 at 11:54 PM, DanPlaskon <
dplas...@gmail.com> wrote:
> > To expand a little; I seem to be hitting an awful lot of these:
>
> > Raven.Http.Exceptions.ConcurrencyException : A document with key:
> > 'shortenedurls/
>
> > gJsNflIHcP4WbxAjCyQqlRa4jA3pz54hXhs0aivlWjXEc1S5pneE4z1aJxsdxdTUJAz1SmliuVy9PY