[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

stress.pl failing over ra_svn

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-03-27 02:21:39 CET

Hello

The tools/dev/stress.pl script is failing when I run it over
ra_svn. The script currently recognises three commit errors as being
"valid" i.e. errors that can occur naturally during normal operation.
These are:

  "Transaction is out of date"
  "Merge conflict during commit"
  "Baseline incorrect"

Now when I run the script over ra_svn commits that fail usually give

  "Network connection closed unexpectedly"

which looks suspicious to me. I have used the patch at the end of
this mail to make the script recognise the new error, and then I see
that occasionally commits do fail with one of the three "valid"
errors, the "Transaction is out of date" error say, but the new error
is the most common. I tried backing out the most recent ra_svn changes
and it made no difference.

So to my questions

  - Is ra_svn supposed to report all commit errors?
  - Does the "Network connection closed unexpectedly" error indicate a
    protocol problem?

I have so far failed to determine exactly what is happening when the
"Network connection closed unexpectedly" error occurs. I'd rather not
add such a general error to the script's list of "valid" commit errors
if possible.

Here is how I run the script over ra_svn. In the first xterm run

   $ svnserve -d -r .
   $ path/to/stress.pl -c -s0 -U svn://localhost/repostress

and in the second xterm run

   $ path/to/stress.pl -s0 -U svn://localhost/repostress

One of these will fail with an error something like

Transmitting file data ....subversion/libsvn_client/commit.c:618: (apr_err=210002)
svn: Network connection closed unexpectedly
svn: Commit failed (details follow):
subversion/libsvn_ra_svn/marshal.c:167: (apr_err=210002)
svn: Connection closed unexpectedly

Index: tools/dev/stress.pl
===================================================================
--- tools/dev/stress.pl (revision 5480)
+++ tools/dev/stress.pl (working copy)
@@ -167,6 +167,8 @@
                                     Merge[ ]conflict[ ]during[ ]commit
                                     |
                                     Baseline[ ]incorrect
+ |
+ Network[ ]connection[ ]closed[ ]unexpectedly
                                    )
                                    $/x );
       }

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Mar 27 02:22:22 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.