You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by pe...@bigfoot.com on 2009/08/12 20:02:59 UTC
Loading dump file into active r/w repository
Is it possible/advisable to load a dump file into an active r/w
repository? The load would be going to a new directory using the
--parent-dir option.
Is there any chance of revisions from the load getting mixed in with
revisions from users committing changes? Or any problems as a result of
such mixing?
NOTE: Nobody will be changing any of the paths which are being loaded...
at least they're told not to... and I guess I could setup an authz entry
that sets those paths to r/o.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2383000
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Loading dump file into active r/w repository
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Aug 12, 2009, at 15:02, petesea@bigfoot.com wrote:
> Is it possible/advisable to load a dump file into an active r/w
> repository? The load would be going to a new directory using the
> --parent-dir option.
>
> Is there any chance of revisions from the load getting mixed in with
> revisions from users committing changes? Or any problems as a
> result of
> such mixing?
>
> NOTE: Nobody will be changing any of the paths which are being
> loaded...
> at least they're told not to... and I guess I could setup an authz
> entry
> that sets those paths to r/o.
Other than breaking date-based revisions as Larry said, no, there is
no problem. Specifically, I'm pretty sure there is no chance that the
revisions you're loading will get messed up by revisions others are
committing in other parts of the repository. I don't know whether
others' revisions will be allowed to sneak into the middle of the
ones you're loading or whether it will block them until you're done
loading. I would guess it wouldn't matter either way.
In case there is a problem and you want to roll back to a revision
prior to the load, you may want to schedule this for a time when you
can disable write access to the repository to everyone else.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2383130
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Loading dump file into active r/w repository
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Aug 13, 2009, at 13:33, petesea@bigfoot.com wrote:
> On Wed, 12 Aug 2009, Larry Shatzer, Jr. wrote:
>
>> On Wed, Aug 12, 2009 at 2:02 PM, <pe...@bigfoot.com> wrote:
>>
>>> Is it possible/advisable to load a dump file into an active r/w
>>> repository?
>>
>> As long as you know that it will "break" date based revisions:
>>
>> See
>> http://apache.org/dev/version-control.html#date-revisions and
>> http://subversion.tigris.org/issues/show_bug.cgi?id=752
>
> Perhaps I'm reading that 2nd link incorrectly, but it looks like
> loading a dump file into an existing repository can break date
> based revisions regardless if the load is done while the repository
> is r/w, r/o or offline.
That's correct.
> Is there a way to correct the "date based revision" problem, eg,
> could I dump the ENTIRE repository, re-create it and re-load? Will
> the dump be created in date order?
No, that wouldn't fix it. I am aware of svndumptool, which can merge
multiple dumpfiles into a single one, keeping things in chronological
order, but I think that requires each individual dumpfile to already
be in chronological order.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2383428
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Loading dump file into active r/w repository
Posted by pe...@bigfoot.com.
On Wed, 12 Aug 2009, Larry Shatzer, Jr. wrote:
> On Wed, Aug 12, 2009 at 2:02 PM, <pe...@bigfoot.com> wrote:
>
>> Is it possible/advisable to load a dump file into an active r/w
>> repository?
>
> As long as you know that it will "break" date based revisions:
>
> See
> http://apache.org/dev/version-control.html#date-revisions and
> http://subversion.tigris.org/issues/show_bug.cgi?id=752
Perhaps I'm reading that 2nd link incorrectly, but it looks like loading a
dump file into an existing repository can break date based revisions
regardless if the load is done while the repository is r/w, r/o or
offline.
Here's a snippet from the bug report:
this will affect all repositories which have received an import from
a dumpfile (assuming the import contains commits older than HEAD,
which invariably it does).
Soo, assuming I'm interpreting that statement correctly (and I'm not
saying I am) it doesn't matter if I leave the repository r/w, change it to
r/o or take it offline, if the dump file contains commits older then the
latest revision in the repository this problem will occur.
My original question was specifically related to loading a dumpfile into
an active **R/W** repository and it sounds like this problem isn't
specific to that... the key being "loading into R/W".
Most of the time when I load a dump file into an existing repository I
take the repository offline. If I have leave it up, I change it to r/o.
I haven't (yet) come across a situation where I HAD to leave the
repository r/w while doing the load, but expect that may happen and just
wanted to know if there were any issues specific to loading into a r/w
repository.
Don't get me wrong, I wasn't aware of this particular issue and I'm very
thankful you brought it to my attention, but I want to make sure this is
NOT specific to loading into a R/W repository.
Is there a way to correct the "date based revision" problem, eg, could I
dump the ENTIRE repository, re-create it and re-load? Will the dump be
created in date order?
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2383408
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Loading dump file into active r/w repository
Posted by Larry Shatzer <fu...@zyx.net>.
On Wed, Aug 12, 2009 at 2:02 PM, <pe...@bigfoot.com> wrote:
> Is it possible/advisable to load a dump file into an active r/w
> repository? The load would be going to a new directory using the
> --parent-dir option.
>
> Is there any chance of revisions from the load getting mixed in with
> revisions from users committing changes? Or any problems as a result of
> such mixing?
>
> NOTE: Nobody will be changing any of the paths which are being loaded...
> at least they're told not to... and I guess I could setup an authz entry
> that sets those paths to r/o.
As long as you know that it will "break" date based revisions:
See
http://apache.org/dev/version-control.html#date-revisions and
http://subversion.tigris.org/issues/show_bug.cgi?id=752
-- Larry
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2383010
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].