Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [stellation-res] repository corruption allert!

Thanks much for this one... I think we noticed this on friday, when we
discovered an invalid version in our Stellation repository :-(. It's
in bugzilla already, as 22135. We haven't tracked it down yet, although
I've got a pretty good clue about where it is.

Please drop this into bugzilla, assigned to me, and put it down as blocking 
22135, so that we've got the connection between them in the buglog.  I'm 
almost sure that this is ultimately the same as 22135, so I'm going to focus 
my efforts on this, and see if further exploration verifies the connection
to 22135.

I'll send a note later this evening, with some thoughts about 
a major change to the repository database structure, which may
resolve this. (There's a bit too much cleverness in the implementation
of line tags in the repos, which I'm beginning to suspect is not a good thing.
It's beatiful when we you look at it, but then when you try to debug
something that involves it, the cleverness becomes very frustrating, 
because it's so darned hard to read the data in the database to see what 
went wrong. I'm going to propose a change that's going to be quite
a bit less space efficient in the database, but a whole lot easier
for us to read and understand.)

	-Mark

On Sunday 04 August 2002 05:44 pm, Florin Iucha wrote:
> In the course of working to add support for directory renaming to the
> unittest package, I have changed MAX_AGE from 4 to 7 for some projects
> and I have discovered a repository corruption problem.
>
> It can be reproduced by running the tests in the attached jar.
>
>     [junit] Running org.eclipse.stellation.unittest.AllTests
>     [junit] *** Log Dump ***
>     [junit] testCheckinWithOneFile
>     [junit] Add the_file
>     [junit] Append 0 to the_file
>     [junit] Checkin
>     [junit] Append 1 to the_file
>     [junit] Checkin
>     [junit] Append 2 to the_file
>     [junit] Checkin
>     [junit] Append 3 to the_file
>     [junit] Checkin
>     [junit] Append 4 to the_file
>     [junit] Checkin
>     [junit] Append 5 to the_file
>     [junit] Checkin
>     [junit] Append 6 to the_file
>     [junit] Checkin
>     [junit] Clean
>     [junit] *** Log Dump ***
>     [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 30.641 sec
>     [junit] TEST org.eclipse.stellation.unittest.AllTests FAILED
>
> Various revisions of the project have incorrect contents... Session log:
>
> florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_200208
>04_163927_work$ svc list versions project_20020804_163927 main 0 scott Sun
> Aug 04 16:39:30 CDT 2002
> project_20020804_163927 main 1 scott Sun Aug 04 16:39:34 CDT 2002
> project_20020804_163927 main 2 scott Sun Aug 04 16:39:37 CDT 2002
> project_20020804_163927 main 3 scott Sun Aug 04 16:39:40 CDT 2002
> project_20020804_163927 main 4 scott Sun Aug 04 16:39:43 CDT 2002
> project_20020804_163927 main 5 scott Sun Aug 04 16:39:47 CDT 2002
> project_20020804_163927 main 6 scott Sun Aug 04 16:39:50 CDT 2002
> project_20020804_163927 main 7 scott Sun Aug 04 16:39:53 CDT 2002
> florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_200208
>04_163927_work$ svc checkout project_20020804_163927 --revi main@@0
> florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_200208
>04_163927_work$ svc clean
> florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_200208
>04_163927_work$ ls SVC
> florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_200208
>04_163927_work$ svc checkout project_20020804_163927 --revi main@@1
> florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_200208
>04_163927_work$ ls                 SVC  the_file
> florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_200208
>04_163927_work$ cat the_file       1 2
> 3
> 4
> florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_200208
>04_163927_work$ svc checkout project_20020804_163927 --revi main@@2
> florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_200208
>04_163927_work$ svc clean         
> florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_200208
>04_163927_work$ cat the_file 0
> 2
> 3
> 4
> florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_200208
>04_163927_work$ svc checkout project_20020804_163927 --revi main@@3
> florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_200208
>04_163927_work$ svc clean
> florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_200208
>04_163927_work$ cat the_file 0
> 1
> 3
> 4
>
> florin

-- 
Mark Craig Chu-Carroll,  IBM T.J. Watson Research Center  
*** The Stellation project: Advanced SCM for Collaboration
***		http://www.eclipse.org/stellation
*** Work Email: mcc@xxxxxxxxxxxxxx  ------- Personal Email: markcc@xxxxxxxxxxx




Back to the top