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

RE: svnsync bug ?

From: KLOCK Laurent <Laurent.KLOCK_at_intrasoft-intl.com>
Date: Tue, 26 Mar 2013 14:38:52 +0100

For sure, I don't have any non-repository directories in the master.
No file locks neither on the master.

When I wrote a lot of things are missing...I meant actually, there is nothing at all...

When I list the content of the target with svn list file://localhost:/disk1/svn
It is totally empty..even if a svnadmin verify lists all the revisions...

The source contains also binaries files, if only the initial revision of them would have been copied over, the final target size would already be bigger....

I had a look at the revisions on both sides:

On Master:

[xtnet_svn_at_lux-svn db]$ cat revs/0/1
id: 0-1.0.r1/0
type: dir
count: 0
cpath: /CDBuilder
copyroot: 0 /

PLAIN
K 9
CDBuilder
V 14
dir 0-1.0.r1/0
END
ENDREP
id: 0.0.r1/118
type: dir
pred: 0.0.r0/17
count: 1
text: 1 67 38 38 32a886b862910eca56ed915a5e9ba57f
cpath: /
copyroot: 0 /

_0.0.t0-0 add-dir false false /CDBuilder

118 242

On Target:

[root_at_porfyra db]# cat revs/0/1
id: 0.0.r1/0
type: dir
pred: 0.0.r0/17
count: 1
text: 0 0 4 4 2d2977d1c96f487abe4a1e202dd03b4e
cpath: /
copyroot: 0 /
is-fresh-txn-root: y

0 140

root_at_porfyra db]# cat revs/0/1
id: 0.0.r1/0
type: dir
pred: 0.0.r0/17
count: 1
text: 0 0 4 4 2d2977d1c96f487abe4a1e202dd03b4e
cpath: /
copyroot: 0 /
is-fresh-txn-root: y

0 140
[root_at_porfyra db]# cat revs/0/2
id: 0.0.r2/0
type: dir
pred: 0.0.r1/0
count: 2
text: 0 0 4 4 2d2977d1c96f487abe4a1e202dd03b4e
cpath: /
copyroot: 0 /
is-fresh-txn-root: y

0 139
[root_at_porfyra db]# cat revs/0/3
id: 0.0.r3/0
type: dir
pred: 0.0.r2/0
count: 3
text: 0 0 4 4 2d2977d1c96f487abe4a1e202dd03b4e
cpath: /
copyroot: 0 /
is-fresh-txn-root: y

0 139
[root_at_porfyra db]# cat revs/0/4
id: 0.0.r4/0
type: dir
pred: 0.0.r3/0
count: 4
text: 0 0 4 4 2d2977d1c96f487abe4a1e202dd03b4e
cpath: /
copyroot: 0 /
is-fresh-txn-root: y

0 139

-----Original Message-----
From: MARTIN PHILIP [mailto:codematters_at_ntlworld.com] On Behalf Of Philip Martin
Sent: mardi 26 mars 2013 14:08
To: KLOCK Laurent
Cc: users_at_subversion.apache.org
Subject: Re: svnsync bug ?

"KLOCK Laurent" <Laurent.KLOCK_at_intrasoft-intl.com> writes:

> It syncs up to the latest revision and finishes without any error.
>
> Then I realized that the target repository is much smaller than the
> original one (160 MB vs 2-3 GB...)
>
> Obviously, there is something missing...

Various things are possible. There might be lots of shared content and the master might have rep-sharing disabled. The master might have lots of abandonded transactions. The master might have lots of exclusive file locks. You may have non-repository files located inside the master by accident.

Look inside the repository directories and compare the size of the subdirectories.

> 24806 2013-03-26T11:55:31.407067Z - - xtnet_svn replay
> /project/xtnet_svn r0
>
> It seems that it is always replaying revision r0....Looks like a bug
> but maybe I'm doing something wrong also...

svnserve logs the replay "low water mark" revision, rather then the revisions being replayed, so r0 is expected. (I'm not sure why we choose to log the low water mark revision.)

--
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Received on 2013-03-26 14:39:28 CET

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

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