You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Brandon Humphrey <bh...@divxcorp.com> on 2008/09/23 17:39:23 UTC

Concerns with modifying system time?

I have recently noticed that the system time on our Subversion server is
a few minutes off (~3 minutes fast).  I'd like to fix the time by
syncing with an internal date server, and configuring ntpd to keep it in
sync.

We are running Subversion 1.4.3 on Slackware 11.  

Is there anything I need to be concerned with when performing the
initial sync?

Thanks,
Brandon

Re: Concerns with modifying system time?

Posted by Mike Emmott <Mi...@aeat.co.uk>.

>>> Greg Thomas <th...@omc.bt.co.uk> 24/09/2008 09:31 >>>
On Tue, 23 Sep 2008 13:42:22 -0500, Ryan Schmidt
<su...@ryandesign.com> wrote:

>On Sep 23, 2008, at 12:39 PM, Brandon Humphrey wrote:
>
>> I have recently noticed that the system time on our Subversion  
>> server is a few minutes off (~3 minutes fast).  I’d like to fix
the  
>> time by syncing with an internal date server, and configuring ntpd 

>> to keep it in sync.
...
>> Is there anything I need to be concerned with when performing the  
>> initial sync?
>>
>
>If anybody commits new revisions in the ~3 minutes after you sync,  
>the revisions will appear to be chronologically out of order,

I don't believe this will be an issue; my understanding of ntpd is
that it well understands this sort of issue, and rather than cause the
system time to jump back it will slow the clock down for a while until
it is accurate.

Greg
-- 
This post represents the views of the author and does
not necessarily accurately represent the views of BT.

I agree with Greg.  A word of caution.  I believe that he is relying
on you using ntpd to make the initial correction in the time, as well
as
to protect you from future drift.  Check in ntpd's manual.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org 
For additional commands, e-mail: users-help@subversion.tigris.org 



***********************************************************************
This transmission contains information which may be confidential and which
may also be privileged.  It is intended for the named addressee only.
Unless you are the named addressee, or authorised to receive it on behalf of
the addressee you may not copy or use it, or disclose it to anyone else.  If
you have received this transmission in error please contact the sender.
Thank you for your cooperation. 
***********************************************************************

For more information about AEA please visit our Web site at
http://www.aeat.co.uk ( http://www.aeat.co.uk/ )

AEA Technology plc registered office 329 Harwell, Didcot, Oxfordshire OX11 0QJ.
Registered in England and Wales, number 3095862.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Concerns with modifying system time?

Posted by Greg Thomas <th...@omc.bt.co.uk>.
On Tue, 23 Sep 2008 13:42:22 -0500, Ryan Schmidt
<su...@ryandesign.com> wrote:

>On Sep 23, 2008, at 12:39 PM, Brandon Humphrey wrote:
>
>> I have recently noticed that the system time on our Subversion  
>> server is a few minutes off (~3 minutes fast).  I’d like to fix the  
>> time by syncing with an internal date server, and configuring ntpd  
>> to keep it in sync.
...
>> Is there anything I need to be concerned with when performing the  
>> initial sync?
>>
>
>If anybody commits new revisions in the ~3 minutes after you sync,  
>the revisions will appear to be chronologically out of order,

I don't believe this will be an issue; my understanding of ntpd is
that it well understands this sort of issue, and rather than cause the
system time to jump back it will slow the clock down for a while until
it is accurate.

Greg
-- 
This post represents the views of the author and does
not necessarily accurately represent the views of BT.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

RE: Concerns with modifying system time?

Posted by Brandon Humphrey <bh...@divxcorp.com>.
Excellent suggestions!  I'll make the change at night when everyone is
likely to be sleeping and shutdown apache during the catch up period
just to be sure.

Thanks for the help.


>-----Original Message-----
>From: Andy Levy [mailto:andy.levy@gmail.com]
>Sent: Tuesday, September 23, 2008 11:52 AM
>To: Ryan Schmidt
>Cc: Brandon Humphrey; users@subversion.tigris.org
>Subject: Re: Concerns with modifying system time?
>
>On Tue, Sep 23, 2008 at 14:42, Ryan Schmidt
><su...@ryandesign.com> wrote:
>> On Sep 23, 2008, at 12:39 PM, Brandon Humphrey wrote:
>>
>>> I have recently noticed that the system time on our Subversion
server is
>a
>>> few minutes off (~3 minutes fast).  I'd like to fix the time by
syncing
>with
>>> an internal date server, and configuring ntpd to keep it in sync.
>>>
>>
>> Excellent idea!
>>
>>> We are running Subversion 1.4.3 on Slackware 11.
>>>
>>>
>>> Is there anything I need to be concerned with when performing the
>initial
>>> sync?
>>>
>>
>> If anybody commits new revisions in the ~3 minutes after you sync,
the
>> revisions will appear to be chronologically out of order, which will
make
>> the "-r{date}" revision syntax not work. You can either do your time
sync
>at
>> a time when nobody will be committing, or tell people not to commit
until
>> the clock catches up to where it was, or retroactively fix the
revisions'
>> dates so they're still chronological (svn propedit --revprop -r 123
>> svn:date). Or, if you never use the "-r{date}" syntax then you don't
need
>to
>> worry about it at all.
>
>Or shut down your SVN server process (Apache or svnserve) for about 5
>minutes while you do the sync and then wait for the world to catch up
>to the time the server used to think it was.
>
>I tend to find that when I tell people "don't do X during this time
>period" they all do it before the time is up because they want to test
>the system. Shut down the server and that's impossible.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org


Re: Concerns with modifying system time?

Posted by Andy Levy <an...@gmail.com>.
On Tue, Sep 23, 2008 at 14:42, Ryan Schmidt
<su...@ryandesign.com> wrote:
> On Sep 23, 2008, at 12:39 PM, Brandon Humphrey wrote:
>
>> I have recently noticed that the system time on our Subversion server is a
>> few minutes off (~3 minutes fast).  I'd like to fix the time by syncing with
>> an internal date server, and configuring ntpd to keep it in sync.
>>
>
> Excellent idea!
>
>> We are running Subversion 1.4.3 on Slackware 11.
>>
>>
>> Is there anything I need to be concerned with when performing the initial
>> sync?
>>
>
> If anybody commits new revisions in the ~3 minutes after you sync, the
> revisions will appear to be chronologically out of order, which will make
> the "-r{date}" revision syntax not work. You can either do your time sync at
> a time when nobody will be committing, or tell people not to commit until
> the clock catches up to where it was, or retroactively fix the revisions'
> dates so they're still chronological (svn propedit --revprop -r 123
> svn:date). Or, if you never use the "-r{date}" syntax then you don't need to
> worry about it at all.

Or shut down your SVN server process (Apache or svnserve) for about 5
minutes while you do the sync and then wait for the world to catch up
to the time the server used to think it was.

I tend to find that when I tell people "don't do X during this time
period" they all do it before the time is up because they want to test
the system. Shut down the server and that's impossible.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Concerns with modifying system time?

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Sep 23, 2008, at 12:39 PM, Brandon Humphrey wrote:

> I have recently noticed that the system time on our Subversion  
> server is a few minutes off (~3 minutes fast).  I’d like to fix the  
> time by syncing with an internal date server, and configuring ntpd  
> to keep it in sync.
>

Excellent idea!

> We are running Subversion 1.4.3 on Slackware 11.
>
>
> Is there anything I need to be concerned with when performing the  
> initial sync?
>

If anybody commits new revisions in the ~3 minutes after you sync,  
the revisions will appear to be chronologically out of order, which  
will make the "-r{date}" revision syntax not work. You can either do  
your time sync at a time when nobody will be committing, or tell  
people not to commit until the clock catches up to where it was, or  
retroactively fix the revisions' dates so they're still chronological  
(svn propedit --revprop -r 123 svn:date). Or, if you never use the "-r 
{date}" syntax then you don't need to worry about it at all.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org