You are viewing a plain text version of this content. The canonical link for it is here.
Posted to infrastructure-dev@apache.org by Werner Punz <we...@gmail.com> on 2009/09/18 14:59:00 UTC

SVN + baseline errors revisited

Hello everyone since no one answered the first time. I will repost it 
again, with additional information

I seem to have some kind of lag problem here with both svn.apache.org or 
svn.eu.apache.org

The problem seems to be that I am getting baseline errors after a commit 
which resolve themselves after a few seconds.

I have not tried older svn versions other than what I have on my machine 
currently (1.6.5) but the problem is rather annoying.
The baseline error seems to go away after a handful of seconds like it 
seems to me that some date on the svn server itself needs some catch up 
to do (probably a sync lag) before being in sync again (my machine is 
cnnected to a time server, but since svn seems to rely on version 
numbers I doubt this is a an issue here).

Werner


Re: SVN + baseline errors revisited

Posted by Werner Punz <we...@gmail.com>.
Tony Stevenson schrieb:
> 
> On 18 Sep 2009, at 13:59, Werner Punz wrote:
> 
>> Hello everyone since no one answered the first time. I will repost it 
>> again, with additional information
> 
> What additional information?  Can you show us some example errors, so we 
> can, ehrrm, not just guess?  :-)
> 
Ok thanks for the swift answer, I will commit via SVN on monday again, 
so I can get more detailed errors.
(Currently I am on git svn where the problem just manifests itself that 
I have to rebase after a few seconds, without dedicated errors.)

Anyway more details on monday, I assume it really is some kind of lag 
problem of the version number showing a little bit too late for svn.

Werner




Re: SVN + baseline errors revisited

Posted by Tony Stevenson <to...@pc-tony.com>.
On 18 Sep 2009, at 13:59, Werner Punz wrote:

> Hello everyone since no one answered the first time. I will repost  
> it again, with additional information

What additional information?  Can you show us some example errors, so  
we can, ehrrm, not just guess?  :-)

>
> I seem to have some kind of lag problem here with both  
> svn.apache.org or svn.eu.apache.org
>
> The problem seems to be that I am getting baseline errors after a  
> commit which resolve themselves after a few seconds.

If you commit against the EU server, it proxies that commit back to  
the US (master) and then then form there the commit is replayed back  
to the EU server.
If there are large commits this can cause lag, and hang-ups.  There  
isnt a great deal we can do about that.  That's just what we have (for  
now).

> I have not tried older svn versions other than what I have on my  
> machine currently (1.6.5) but the problem is rather annoying.
> The baseline error seems to go away after a handful of seconds like  
> it seems to me that some date on the svn server itself needs some  
> catch up to do (probably a sync lag) before being in sync again (my  
> machine is cnnected to a time server, but since svn seems to rely on  
> version numbers I doubt this is a an issue here).
>

Your right, it is nothing to to do with time, just the revision numbers.




Cheers,
Tony


--------------------------------------------
Tony Stevenson

tony@pc-tony.com - pctony@apache.org
pctony@freenode.net - tony@caret.cam.ac.uk

http://blog.pc-tony.com

1024D/51047D66 ECAF DC55 C608 5E82 0B5E
3359 C9C7 924E 5104 7D66
--------------------------------------------






Re: SVN + baseline errors revisited

Posted by Werner Punz <we...@gmail.com>.
Luciano Resende schrieb:
> On Fri, Sep 18, 2009 at 7:32 AM, Werner Punz <we...@gmail.com> wrote:
>> Jukka Zitting schrieb:
>>
>>> Given the major performance boost that the EU mirror has given for
>>> many svn operations I don't mind these occasional errors too much
>>> (except when committing via git-svn...), but it might be a good idea
>>> to add an FAQ entry about this.
>>>
>> Ok thanks for the clarification, one thing which is more affected probably
>> is git-svn  but i dont mind doing a set of rebases, after all it only is a
>> handful of commits anyway usually being done.
>> (maybe I should write a meta script with a delay in between for the commit)
>>
> 
> Here is something i use to do multiple commits using git svn with
> proper delay interval
> Use it as gitCo.sh <number of commits>  .... Hope it help others...
> 
> # Licensed to the Apache Software Foundation (ASF) under one
> # or more contributor license agreements.  See the NOTICE file
> # distributed with this work for additional information
> # regarding copyright ownership.  The ASF licenses this file
> # to you under the Apache License, Version 2.0 (the
> # "License"); you may not use this file except in compliance
> # with the License.  You may obtain a copy of the License at
> #
> #   http://www.apache.org/licenses/LICENSE-2.0
> #
> # Unless required by applicable law or agreed to in writing,
> # software distributed under the License is distributed on an
> # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
> # KIND, either express or implied.  See the License for the
> # specific language governing permissions and limitations
> 
> #!/bin/bash
> 
> commits=5
> if [ "$#" -eq "1" ]
> then
>    commits=$1
> fi
> echo ">>> Will commit ${commits} times"
> for((times=0; times<=commits; times++))
> do
>    echo ">>> ${times}"
> 
>    git svn rebase
>    git svn dcommit
>    sleep 35
> done
> git svn rebase
> 
> 


Hey thanks a lot you saved me a few minutes of work.
The script works like a charm.


Werner


Re: SVN + baseline errors revisited

Posted by Luciano Resende <lu...@gmail.com>.
On Fri, Sep 18, 2009 at 7:32 AM, Werner Punz <we...@gmail.com> wrote:
> Jukka Zitting schrieb:
>
>> Given the major performance boost that the EU mirror has given for
>> many svn operations I don't mind these occasional errors too much
>> (except when committing via git-svn...), but it might be a good idea
>> to add an FAQ entry about this.
>>
> Ok thanks for the clarification, one thing which is more affected probably
> is git-svn  but i dont mind doing a set of rebases, after all it only is a
> handful of commits anyway usually being done.
> (maybe I should write a meta script with a delay in between for the commit)
>

Here is something i use to do multiple commits using git svn with
proper delay interval
Use it as gitCo.sh <number of commits>  .... Hope it help others...

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations

#!/bin/bash

commits=5
if [ "$#" -eq "1" ]
then
   commits=$1
fi
echo ">>> Will commit ${commits} times"
for((times=0; times<=commits; times++))
do
   echo ">>> ${times}"

   git svn rebase
   git svn dcommit
   sleep 35
done
git svn rebase


-- 
Luciano Resende
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Re: SVN + baseline errors revisited

Posted by Werner Punz <we...@gmail.com>.
Jukka Zitting schrieb:

> Given the major performance boost that the EU mirror has given for
> many svn operations I don't mind these occasional errors too much
> (except when committing via git-svn...), but it might be a good idea
> to add an FAQ entry about this.
> 
Ok thanks for the clarification, one thing which is more affected 
probably is git-svn  but i dont mind doing a set of rebases, after all 
it only is a handful of commits anyway usually being done.
(maybe I should write a meta script with a delay in between for the commit)

Werner


Re: SVN + baseline errors revisited

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On Fri, Sep 18, 2009 at 2:59 PM, Werner Punz <we...@gmail.com> wrote:
> I seem to have some kind of lag problem here with both svn.apache.org or
> svn.eu.apache.org

This is a known issue with the svn mirroring setup we have. A large
commit can cause some delay between when the new revision is available
on svn-master and a mirror server. During that time a "svn commit"
against a mirror server will fail with the baseline error.

The last time I counted (May), I was experiencing these errors in
about 3% of the svn commits I did. Typically retrying the commit in a
few seconds solves the problem, but in some isolated cases this delay
has been over ten minutes.

Given the major performance boost that the EU mirror has given for
many svn operations I don't mind these occasional errors too much
(except when committing via git-svn...), but it might be a good idea
to add an FAQ entry about this.

BR,

Jukka Zitting