Skip to main content

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

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_20020804_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_20020804_163927_work$ svc checkout project_20020804_163927 --revi main@@0
florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_20020804_163927_work$ svc clean
florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_20020804_163927_work$ ls
SVC
florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_20020804_163927_work$ svc checkout project_20020804_163927 --revi main@@1
florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_20020804_163927_work$ ls                 SVC  the_file
florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_20020804_163927_work$ cat the_file       1
2
3
4
florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_20020804_163927_work$ svc checkout project_20020804_163927 --revi main@@2
florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_20020804_163927_work$ svc clean          florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_20020804_163927_work$ cat the_file 
0
2
3
4
florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_20020804_163927_work$ svc checkout project_20020804_163927 --revi main@@3
florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_20020804_163927_work$ svc clean
florin@bee:~/workspace/org.eclipse.stellation.unittest/tests/project_20020804_163927_work$ cat the_file 
0
1
3
4

florin

-- 

"If it's not broken, let's fix it till it is."

41A9 2BDE 8E11 F1C5 87A6  03EE 34B3 E075 3B90 DFE4

Attachment: svc_test-19.jar
Description: application/java-archive

Attachment: pgpjD1PhXGDB4.pgp
Description: PGP signature


Back to the top