You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to ravendb
Can this kind of exception occur when one Transaction is writing a
document and another is trying to read it (with default transaction
settings)?
Oren Eini (Ayende Rahien)
unread,
May 22, 2012, 7:24:19 AM5/22/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rav...@googlegroups.com
No, only when both are trying to write.
Pete Nelson
unread,
May 22, 2012, 12:37:02 PM5/22/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rav...@googlegroups.com
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?
Oren Eini (Ayende Rahien)
unread,
May 22, 2012, 12:49:10 PM5/22/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rav...@googlegroups.com
Pete,
You can check for no changes using session.Advanced.HasChanged
I don't understand the rest of the question
Pete Nelson
unread,
May 22, 2012, 12:49:43 PM5/22/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rav...@googlegroups.com
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:
Pete Nelson
unread,
May 22, 2012, 12:51:21 PM5/22/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rav...@googlegroups.com
Ok thanks. I will try this
Oren Eini (Ayende Rahien)
unread,
May 22, 2012, 12:52:35 PM5/22/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rav...@googlegroups.com
No, SaveChanges is a no op if there hasn't been any changes.
Pete Nelson
unread,
May 23, 2012, 4:25:58 AM5/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rav...@googlegroups.com
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
Oren Eini (Ayende Rahien)
unread,
May 23, 2012, 8:13:56 AM5/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rav...@googlegroups.com
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?
lunarjetset
unread,
May 23, 2012, 8:17:25 AM5/23/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message