SVN Repo gets Corrupted After Modifying a File
Posted by Ultimitehand@reddit | sysadmin | View on Reddit | 10 comments
I'm having an issue within my SVN repository where the repository gets corrupted after a specific file is modified.
When running cleanup, I received this error:
Pristine text '1e31eea346ad02dcea5c898d284aff674a397ac7' not present
I connected to wc.db and found that this text points to a specific file (e.g. hello.php).
Query Used
SELECT * FROM nodes WHERE checksum LIKE '%<pristine file>%'
I deleted hello.php, ran cleanup and reverted the file, SVN repository started working normally again.
I then tried to edit hello.php, to add any text (the issue happens on modification, regardless of changes made).
Immediately, the same error appears again.
I can resolve the issue by deleting and then reverting the file, but the moment this file is modified, the error occurs again.
Does anyone know what might be the issue and how can I resolve it?
kiler129@reddit
Moving to tooling newer than two decades, e.g. git, is probably the best idea.
PlaneLiterature2135@reddit
Git is not the holy grail you think it is.
https://graphite.com/blog/why-facebook-doesnt-use-git.
ExceptionEX@reddit
The thing is, there are maybe 100 companies that have to worry about this level of scaling, Agile project management doesn't work at that scale either, nor does a lot of what is common place in most tech companies.
I don't care if someone uses SVN, Git, and I loved Mercurial back in the day, so this isn't a dig, just saying, you can hardly trash something because it doesn't scale to Facebooks need, PHP doesn't scale to facebooks needs.
PlaneLiterature2135@reddit
Not trashing git. But
Is just short sighted.
ExceptionEX@reddit
Oh agree, don't agree with that either, just saying that the issue listed in that article doesn't apply to 99% of people. And Git is pretty solid in most use cases (frustrating at times, and not without fault) but solid overall.
ExceptionEX@reddit
Not sure this is reply was meant for my message?
Hotshot55@reddit
SVN still has some pretty valid use cases, especially for large binary blobs. You should probably understand the tech before you talk a bunch of shit on it.
ferrybig@reddit
Git is also 2 decades out.
Git is created in 2005 (and received regular updates), so it is now 21 years old
Svn is created in 2000 (and received regular updates), so it is now 26 years old
Both are 2 decades
Ultimitehand@reddit (OP)
That's probably not possible. For one thing, SVN is still active and regularly maintained, for another, Git is two decades old, SVN is two and a half decade old
PlaneLiterature2135@reddit
Git is not the holy grail you think it is.
https://graphite.com/blog/why-facebook-doesnt-use-git.