Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Raven.Abstractions.Exceptions. ConcurrencyException
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  10 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
lunarjetset  
View profile  
 More options May 22 2012, 6:28 am
From: lunarjetset <pete.nel...@workfu.com>
Date: Tue, 22 May 2012 03:28:03 -0700 (PDT)
Local: Tues, May 22 2012 6:28 am
Subject: Raven.Abstractions.Exceptions.Concurrenc yException
Can this kind of exception occur when one Transaction is writing a
document and another is trying to read it (with default transaction
settings)?

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options May 22 2012, 7:24 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Tue, 22 May 2012 13:24:19 +0200
Local: Tues, May 22 2012 7:24 am
Subject: Re: [RavenDB] Raven.Abstractions.Exceptions.Concurrenc yException

No, only when both are trying to write.

On Tue, May 22, 2012 at 12:28 PM, lunarjetset <pete.nel...@workfu.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pete Nelson  
View profile  
 More options May 22 2012, 12:37 pm
From: Pete Nelson <pete.nel...@workfu.com>
Date: Tue, 22 May 2012 17:37:02 +0100
Local: Tues, May 22 2012 12:37 pm
Subject: Re: [RavenDB] Raven.Abstractions.Exceptions.Concurrenc yException

And can I check if no changes have been made to a loaded document int he .net client and savechanges is called whilst another client is writing to the document - would this cause a concurrency issue or does the first client know that there is no stale data?

On 22 May 2012, at 12:24, "Oren Eini (Ayende Rahien)" <aye...@ayende.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options May 22 2012, 12:49 pm
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Tue, 22 May 2012 18:49:10 +0200
Local: Tues, May 22 2012 12:49 pm
Subject: Re: [RavenDB] Raven.Abstractions.Exceptions.Concurrenc yException

Pete,
You can check for no changes using session.Advanced.HasChanged
I don't understand the rest of the question


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pete Nelson  
View profile  
 More options May 22 2012, 12:49 pm
From: Pete Nelson <pete.nel...@workfu.com>
Date: Tue, 22 May 2012 17:49:43 +0100
Local: Tues, May 22 2012 12:49 pm
Subject: Re: [RavenDB] Raven.Abstractions.Exceptions.Concurrenc yException

Edited to improve readability:
 if no changes have been made to a loaded document by a .net client and savechanges is called whilst another client is writing to the document - would this cause a concurrency issue or does the first client know that there is no stale data?

On 22 May 2012, at 12:24, "Oren Eini (Ayende Rahien)" <aye...@ayende.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pete Nelson  
View profile  
 More options May 22 2012, 12:51 pm
From: Pete Nelson <pete.nel...@workfu.com>
Date: Tue, 22 May 2012 17:51:21 +0100
Local: Tues, May 22 2012 12:51 pm
Subject: Re: [RavenDB] Raven.Abstractions.Exceptions.Concurrenc yException

Ok thanks. I will try this

On 22 May 2012, at 17:49, "Oren Eini (Ayende Rahien)" <aye...@ayende.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options May 22 2012, 12:52 pm
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Tue, 22 May 2012 18:52:35 +0200
Local: Tues, May 22 2012 12:52 pm
Subject: Re: [RavenDB] Raven.Abstractions.Exceptions.Concurrenc yException

No, SaveChanges is a no op if there hasn't been any changes.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pete Nelson  
View profile  
 More options May 23 2012, 4:25 am
From: Pete Nelson <pete.nel...@workfu.com>
Date: Wed, 23 May 2012 09:25:58 +0100
Local: Wed, May 23 2012 4:25 am
Subject: Re: [RavenDB] Raven.Abstractions.Exceptions.Concurrenc yException

Hi,

OK I managed to seemingly fix the problem but it has come up again.

I need to try and think of a way to debug this so if you have any
thoughts how to debug that would be great:

- There is a webapp with SaveChanges being called at the end of the
request cycle on OnActionExecuted
- There is a Raven plugin (RequestResponder) that uses
Database.TransactionalStorage.Batch to save some data from SQL Server
when the plugin is called.
- Sometimes (due to a race-condition) after the plugin has run and the
webapp calls SaveChanges we get the ConcurrencyException even though we
have NOT made any changes to any Documents in the web app.

It seems maybe the webapp SaveChanges triggers something that is queued
to be saved but I don't really understand this area.

if you could give me an idea how to debug that would be really helpful,

thanks
Pete


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options May 23 2012, 8:13 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Wed, 23 May 2012 14:13:56 +0200
Local: Wed, May 23 2012 8:13 am
Subject: Re: [RavenDB] Raven.Abstractions.Exceptions.Concurrenc yException

SaveChanges NEVER TOUCHES THE SERVER if there hasn't been something to
change.
Let us first concentrate on this. Can you check that the client goes to the
server even when you think that there shouldn't be any changes?

On Wed, May 23, 2012 at 10:25 AM, Pete Nelson <pete.nel...@workfu.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
lunarjetset  
View profile  
 More options May 23 2012, 8:17 am
From: lunarjetset <pete.nel...@workfu.com>
Date: Wed, 23 May 2012 05:17:25 -0700 (PDT)
Local: Wed, May 23 2012 8:17 am
Subject: Re: [RavenDB] Raven.Abstractions.Exceptions.Concurrenc yException

ok thanks - I will check this.  


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »