Svnadmin: Svndiff contains window too large

When I try to load / restore my SVN repositories, I get an error message:

svnadmin: svndiff contains window too large

How can i solve this?

+3
source share
2 answers

Since I came across this today ...

There is probably a damaged revision in your svn repository with the FSFS database.

BACKUP YOUR SVN LIST.

Determine if your repository is packed or fired by reading $ {REPO} / db / format

[root@chi2 db]# cat format
4
layout linear

If your fsfs database is layout layout, you need to get fsfs-reshard.py from here: http://ymartin59.free.fr/wordpress/wp-content/2010/07/fsfs-reshard.py

( 1.6+, - svn trunk).

, :

./fsfs-reshard.py ${REPO} 0

:

svnadmin verify ${REPO}

* Verified revision 13689.
* Verified revision 13690.
* Verified revision 13691.
svnadmin: E185001: Svndiff contains a too-large window

​​, - 1 , - 13692.

fsfsverify.py Subversion. http://svn.apache.org/repos/asf/subversion/trunk/contrib/server-side/fsfsverify.py

fsfsverify.py . , -f . , .

[root@chi2 archive]# ./fsfsverify.py -f ${REPO}/db/revs/13692
Copy 4640123 bytes from offset 1006867
Write 4640123 bytes at offset 1003542
Fixed? :-)  Re-run fsfsverify without the -f option
[root@chi2 archive]# ./fsfsverify.py ${REPO}/db/revs/13692

svnadmin . .

, ,

./fsfs-reshard.py ${REPO} 1000

svnadmin !

SVN !

+4

, , , , , .

SVN ( , MD5'd). , SVN , , .

- "". , MD5 ( ), svndiff ( , ), SVN . "" , ( , ), MD5. "" .

- , . , , 100MB - - , . , , , , .

:

  • , (, , ..).
  • , .
  • (, ..) , .

, , , .

0
source

Source: https://habr.com/ru/post/1765250/


All Articles