You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by bu...@apache.org on 2007/05/23 17:14:15 UTC

DO NOT REPLY [Bug 42496] New: - concurrence of editors causes failing of document creation.

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496

           Summary: concurrence of editors causes failing of document
                    creation.
           Product: Lenya
           Version: Trunk
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Site Management
        AssignedTo: dev@lenya.apache.org
        ReportedBy: thorsten@apache.org


Javier Puerto has done some JMeter tests against the default pub.

Bottom line is everything is fine if only one user is creating content, as soon
there is another user creating documents lenya is failing. Meaning we have a
problem with concurrence.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496


rfrovarp@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |rfrovarp@apache.org




------- Additional Comments From rfrovarp@apache.org  2007-10-18 12:34 -------
*** Bug 43136 has been marked as a duplicate of this bug. ***

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From thorsten@apache.org  2007-05-23 08:55 -------
Yes you need to create both user. Will attach the access files.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From thorsten@apache.org  2007-05-24 08:14 -------
(In reply to comment #17)
> You mean you'd combine a queue (asynchronous) with request-based user
> interaction (synchronous)? I'm not quite sure how this should be implemented in
> a reasonable way - would you add a loop to the usecase which waits for the
> queued task to be executed?

The "flow" would be:
a) user requests ...?lenya.usecase=sitemanagement.create and submits
b) doCheckExecutionConditions() checks whether the url is in the cue, if not it
locks it in the cue and we hit doExecute() (-> go on with c)). If in the cue
addErrorMessage("path-already-exists", params);
c) Instead doing setDefaultTargetURL(document.getCanonicalWebappURL()); like
right now we can send him to an ajax based cue overview (which gets updated in
real time from the cue worker). In combination (or alternatively) we can use a
checkbox to request a notification from the worker as soon he has done the document.

The cue must be serializable and further keep state of the operation (log
error/success). After a cue item is finished we write to the sitetree.

To answer: "would you add a loop to the usecase which waits for the queued task
to be executed" No, since the execution is to put it in the cue. The only
downside is that the user is not be able to see directly the new page.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496


thorsten@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|critical                    |regression




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From thorsten@apache.org  2007-05-24 07:07 -------
(In reply to comment #14)
...
> The problem with queues is that they're not suitable for interactive scenarios
> when the same resources are affected. Imagine that two people would like to
> create a document with the same URL. When using a queue, you have no chance to
> give feedback to the user. IMO pessimistic offline lock is more suitable in this
> situation.

Actually there is a chance but it costs a call more. Before sending to the cue
the cue needs to be validated that the same URL is not already in it. If not in
the cue the user gets a message that his document is in the cue. If it is in the
cue then she gets the message to choose another name.

The only thing that needs changes is the forward after creation. I think a nice
ajax dialog would be nice, like telling the user to stand by or do other stuff
meanwhile. Using notifications as soon the new doc is out of the cue the user
gets feedback.



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by Thorsten Scherler <th...@juntadeandalucia.es>.
On Wed, 2007-05-23 at 17:47 +0200, Andreas Hartmann wrote:
> Thorsten Scherler schrieb:
> > On Wed, 2007-05-23 at 08:22 -0700, bugzilla@apache.org wrote:
> >> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
> >> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> >> <http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
> >> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
> >> INSERTED IN THE BUG DATABASE.
> >>
> >> http://issues.apache.org/bugzilla/show_bug.cgi?id=42496
> >>
> >>
> >>
> >>
> >>
> >> ------- Additional Comments From andreas@apache.org  2007-05-23 08:22 -------
> >> Can we add the test files to modules/development/tests/jmeter/?
> > 
> > Yes, can somebody take care of it?
> 
> Done. I removed the context prefix and changed the port to 8888.
> Maybe someone could translate the Spanish labels to English? TIA!

Will have a look tomorrow if nobody beats me to it.

salu2
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by Andreas Hartmann <an...@apache.org>.
Thorsten Scherler schrieb:
> On Wed, 2007-05-23 at 08:22 -0700, bugzilla@apache.org wrote:
>> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
>> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
>> <http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
>> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
>> INSERTED IN THE BUG DATABASE.
>>
>> http://issues.apache.org/bugzilla/show_bug.cgi?id=42496
>>
>>
>>
>>
>>
>> ------- Additional Comments From andreas@apache.org  2007-05-23 08:22 -------
>> Can we add the test files to modules/development/tests/jmeter/?
> 
> Yes, can somebody take care of it?

Done. I removed the context prefix and changed the port to 8888.
Maybe someone could translate the Spanish labels to English? TIA!

-- Andreas


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by Thorsten Scherler <th...@juntadeandalucia.es>.
On Wed, 2007-05-23 at 08:22 -0700, bugzilla@apache.org wrote:
> DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
> RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
> <http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
> ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
> INSERTED IN THE BUG DATABASE.
> 
> http://issues.apache.org/bugzilla/show_bug.cgi?id=42496
> 
> 
> 
> 
> 
> ------- Additional Comments From andreas@apache.org  2007-05-23 08:22 -------
> Can we add the test files to modules/development/tests/jmeter/?

Yes, can somebody take care of it?

salu2
-- 
Thorsten Scherler                                 thorsten.at.apache.org
Open Source Java                      consulting, training and solutions


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From andreas@apache.org  2007-05-23 08:22 -------
Can we add the test files to modules/development/tests/jmeter/?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From andreas@apache.org  2007-05-24 08:22 -------
(In reply to comment #18)
> (In reply to comment #17)
> > You mean you'd combine a queue (asynchronous) with request-based user
> > interaction (synchronous)? I'm not quite sure how this should be implemented in
> > a reasonable way - would you add a loop to the usecase which waits for the
> > queued task to be executed?
> 
> The "flow" would be:
> a) user requests ...?lenya.usecase=sitemanagement.create and submits
> b) doCheckExecutionConditions() checks whether the url is in the cue, if not it
> locks it in the cue and we hit doExecute() (-> go on with c)). If in the cue
> addErrorMessage("path-already-exists", params);
> c) Instead doing setDefaultTargetURL(document.getCanonicalWebappURL()); like
> right now we can send him to an ajax based cue overview (which gets updated in
> real time from the cue worker). In combination (or alternatively) we can use a
> checkbox to request a notification from the worker as soon he has done the
document.

OK, I see what you mean.

> The cue must be serializable and further keep state of the operation (log
> error/success). After a cue item is finished we write to the sitetree.

That would mean we'd have to implement a full featured command pattern and a
persistent queue, which is serious business. Certainly nothing for 1.4, I'd even
say we should postpone it to 1.5 or later.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From andreas@apache.org  2007-05-24 07:30 -------
(In reply to comment #16)

You mean you'd combine a queue (asynchronous) with request-based user
interaction (synchronous)? I'm not quite sure how this should be implemented in
a reasonable way - would you add a loop to the usecase which waits for the
queued task to be executed?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From andreas@apache.org  2007-05-23 08:53 -------
Am I right that one has to create the users admin1 and admin2?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From andreas@apache.org  2007-05-24 02:48 -------
It looks like the sitetree is modified without locking its repository node ...

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From andreas@apache.org  2007-05-24 06:08 -------
(In reply to comment #13)

> Javier and I talked about it and a possible fix is to introduce a cue. 
> admin 1 and 2 are trying to create content at the time. Instead directly
> allowing it, each creation goes into a cue and lenya will process it one after
> the other.

The problem with queues is that they're not suitable for interactive scenarios
when the same resources are affected. Imagine that two people would like to
create a document with the same URL. When using a queue, you have no chance to
give feedback to the user. IMO pessimistic offline lock is more suitable in this
situation.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From andreas@apache.org  2007-05-24 08:25 -------
I'd suggest we display a sane error message instead of the "repository node was
changed" exception and add an entry to the FAQ, advicing to set the usecase to
pessimistic to avoid the error. Any changes to the command execution can be
discussed in a different issue or mailing list thread. WDYT?

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From thorsten@apache.org  2007-05-23 08:16 -------
Created an attachment (id=20249)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20249&action=view)
jmeter user 


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From thorsten@apache.org  2007-05-23 08:14 -------
Created an attachment (id=20247)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20247&action=view)
lenyaJMeterTest


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From thorsten@apache.org  2007-05-24 05:59 -------
(In reply to comment #12)
> Setting the create usecase to pessimistic avoids the exception. Of course the
> documents aren't created anymore.

jeje.

Javier and I talked about it and a possible fix is to introduce a cue. 
admin 1 and 2 are trying to create content at the time. Instead directly
allowing it, each creation goes into a cue and lenya will process it one after
the other.

BTW Daisy is the only CMS that did not made any problems with concurrence. I
still have not found enough time to look in their repository implementation, but
I think it is worthwhile.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From andreas@apache.org  2007-05-23 08:39 -------
Would it be possible to provide an English version of the test case? TIA!

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From thorsten@apache.org  2007-05-23 08:57 -------
Created an attachment (id=20250)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20250&action=view)
jmeter user admin 1 to 5 (passwd: levi)


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496


thorsten@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|1.4                         |1.4.1




------- Additional Comments From thorsten@apache.org  2007-05-24 08:40 -------
Why do not set it by default to pessimistic?

I agree with your comments, display a message that explains that the doc could
not create out of high traffic (something in this direction) sounds good.

Yeah, regarding command execution that should go in a bug after discussing it on
dev.

Nice working with you. :)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From andreas@apache.org  2007-05-24 06:48 -------
With the pessimistic usecases, I still get two types of exceptions when running
the app in the debugger:

- indexer is busy (we have to avoid this)
- document not referenced in site structure (apparently inconsistent data)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From andreas@apache.org  2007-05-24 02:55 -------
Well, I don't see much we can do about this besides making the usecases in
question pessimistic.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From andreas@apache.org  2007-05-24 08:17 -------
When setting the create usecase to pessimistic and applying the patch 20269 for
bug 42510, I can run the test with a clean log. Some of the documents aren't
created, though (when the sitetree repo node is locked by another thread).

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From thorsten@apache.org  2007-05-23 08:15 -------
Created an attachment (id=20248)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=20248&action=view)
Log for the jmeter test run


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From andreas@apache.org  2007-05-24 08:49 -------
(In reply to comment #22)
> Why do not set it by default to pessimistic?

The problem with pessimistic usecases is that they create persistent locks,
which lead to the infamous "checked out by another user" issue. This makes sense
for editing (because the losing the changes is expensive), but IMO for creating
docs optimistic behaviour is sufficient. But fortunately it's is up to the
integrator to decide that. Maybe you'd like to raise the question on the dev or
user list.

> I agree with your comments, display a message that explains that the doc could
> not create out of high traffic (something in this direction) sounds good.

OK, I'll try to take care of this.

> Yeah, regarding command execution that should go in a bug after discussing it on
> dev.
> 
> Nice working with you. :)

With you too :)

BTW, the test case is great, it also brought the "indexer is busy" issue up.
Thanks a lot to Javier!



-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From andreas@apache.org  2007-05-24 05:52 -------
Setting the create usecase to pessimistic avoids the exception. Of course the
documents aren't created anymore.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496





------- Additional Comments From andreas@apache.org  2007-05-23 08:36 -------
The log contains an error about a particular entity in an i18n catalogue:

Caused by: org.xml.sax.SAXParseException: The entity "iexcl" was referenced, but
not declared.


-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


DO NOT REPLY [Bug 42496] - concurrence of editors causes failing of document creation.

Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42496>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42496


andreas@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|1.4.1                       |2.0.1




-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org