Return-Path: Delivered-To: apmail-incubator-cassandra-dev-archive@minotaur.apache.org Received: (qmail 9131 invoked from network); 14 Nov 2009 16:06:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Nov 2009 16:06:05 -0000 Received: (qmail 40117 invoked by uid 500); 14 Nov 2009 16:06:04 -0000 Delivered-To: apmail-incubator-cassandra-dev-archive@incubator.apache.org Received: (qmail 40070 invoked by uid 500); 14 Nov 2009 16:06:04 -0000 Mailing-List: contact cassandra-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: cassandra-dev@incubator.apache.org Delivered-To: mailing list cassandra-dev@incubator.apache.org Received: (qmail 40060 invoked by uid 99); 14 Nov 2009 16:06:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Nov 2009 16:06:04 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE,NORMAL_HTTP_TO_IP X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of paul.sabou@gmail.com designates 209.85.220.214 as permitted sender) Received: from [209.85.220.214] (HELO mail-fx0-f214.google.com) (209.85.220.214) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Nov 2009 16:06:01 +0000 Received: by fxm6 with SMTP id 6so3542678fxm.20 for ; Sat, 14 Nov 2009 08:05:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type; bh=MVnQIVG1oLV+t42mFwpsUdCTiXC6R5bu0RMPRQoMdnM=; b=vVg/8AV7ngIzl5kLsPu6LgL4hVoxjVHbNc7i39KZd06rxjsQbKRSDLkfHXvHkjz0gR WjmbM6yPybP/7/OkcxgAa3cIrT4pgM+PkPPok1tbNACK6ZG0C/lD+PSB2tKegwffuqe3 mhP4Y25QTOHia9TkGyESs0gXcAbfkdegKTTbE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=S2154rI99jXUtCX+tgodJq1K7V7Z6X1lwO+afQ9Tsymawh4YjKTD8cr9kTP8uSENBO 5/x8Gbcft9njs5bnbz7nZL4bAJa2E5tVcX96G00hk3SG64uv9SssXXtpLVEH193jdvbk TFi5OQc6bxlBYNNWF6E0TUkve+dg+x/djCALo= MIME-Version: 1.0 Received: by 10.204.48.141 with SMTP id r13mr2596804bkf.0.1258214739147; Sat, 14 Nov 2009 08:05:39 -0800 (PST) In-Reply-To: References: <76e64850911140401i555b5bf3h4997cf2c3cb119e1@mail.gmail.com> <76e64850911140610y3396e784ld856e1918df91806@mail.gmail.com> <76e64850911140712l5dda7be5y4493c6b4d1ef8e99@mail.gmail.com> From: Paul Sabou Date: Sat, 14 Nov 2009 17:05:18 +0100 Message-ID: <76e64850911140805i63feed9en81ec715f51517e5a@mail.gmail.com> Subject: Re: 2 problems running Cassandra as a developper To: cassandra-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=000325558d6693fe12047856f277 --000325558d6693fe12047856f277 Content-Type: text/plain; charset=ISO-8859-1 Hi, Thank you for the advice. The project can be build with "ant build" OK The project can be cleaned with "ant clean" OK But when I run : ant clean ant test I still get a bunch of test failures. The "ant test" outuput is below : ------------------------------------- Buildfile: build.xml build-subprojects: init: [mkdir] Created dir: /root/software/cassandra/trunk/build/classes [mkdir] Created dir: /root/software/cassandra/trunk/build/test/classes [mkdir] Created dir: /root/software/cassandra/trunk/src/gen-java check-gen-cli-grammar: gen-cli-grammar: [echo] Building Grammar /root/software/cassandra/trunk/src/java/org/apache/cassandra/cli/Cli.g .... build-project: [echo] apache-cassandra-incubating: /root/software/cassandra/trunk/build.xml [javac] Compiling 241 source files to /root/software/cassandra/trunk/build/classes [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. build: build-test: [javac] Compiling 48 source files to /root/software/cassandra/trunk/build/test/classes [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. test: [echo] running tests [mkdir] Created dir: /root/software/cassandra/trunk/build/test/cassandra [mkdir] Created dir: /root/software/cassandra/trunk/build/test/output [junit] Testsuite: org.apache.cassandra.config.DatabaseDescriptorTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.883 sec [junit] [junit] Testsuite: org.apache.cassandra.db.ColumnFamilyStoreTest [junit] Tests run: 3, Failures: 0, Errors: 1, Time elapsed: 1.121 sec [junit] [junit] Testcase: testAntiCompaction1(org.apache.cassandra.db.ColumnFamilyStoreTest): Caused an ERROR [junit] java.util.concurrent.ExecutionException: java.lang.ClassCastException: [B cannot be cast to java.math.BigInteger [junit] java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.ClassCastException: [B cannot be cast to java.math.BigInteger [junit] at org.apache.cassandra.db.ColumnFamilyStore.forceAntiCompaction(ColumnFamilyStore.java:307) [junit] at org.apache.cassandra.db.ColumnFamilyStoreTest.testAntiCompaction(ColumnFamilyStoreTest.java:126) [junit] at org.apache.cassandra.db.ColumnFamilyStoreTest.testAntiCompaction1(ColumnFamilyStoreTest.java:133) [junit] Caused by: java.util.concurrent.ExecutionException: java.lang.ClassCastException: [B cannot be cast to java.math.BigInteger [junit] at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222) [junit] at java.util.concurrent.FutureTask.get(FutureTask.java:83) [junit] at org.apache.cassandra.db.ColumnFamilyStore.forceAntiCompaction(ColumnFamilyStore.java:301) [junit] Caused by: java.lang.ClassCastException: [B cannot be cast to java.math.BigInteger [junit] at org.apache.cassandra.dht.BigIntegerToken.compareTo(BigIntegerToken.java:38) [junit] at org.apache.cassandra.dht.Range.contains(Range.java:102) [junit] at org.apache.cassandra.dht.Range.isTokenInRanges(Range.java:144) [junit] at org.apache.cassandra.db.ColumnFamilyStore.doFileAntiCompaction(ColumnFamilyStore.java:819) [junit] at org.apache.cassandra.db.ColumnFamilyStore.doAntiCompaction(ColumnFamilyStore.java:735) [junit] at org.apache.cassandra.db.CompactionManager$FileCompactor2.call(CompactionManager.java:95) [junit] at org.apache.cassandra.db.CompactionManager$FileCompactor2.call(CompactionManager.java:75) [junit] at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [junit] at java.util.concurrent.FutureTask.run(FutureTask.java:138) [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [junit] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [junit] at java.lang.Thread.run(Thread.java:619) [junit] [junit] [junit] Testsuite: org.apache.cassandra.db.ColumnFamilyTest [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.803 sec [junit] [junit] Testsuite: org.apache.cassandra.db.CommitLogTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.951 sec [junit] [junit] Testsuite: org.apache.cassandra.db.CompactionsTest [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 5.94 sec [junit] [junit] Testsuite: org.apache.cassandra.db.MultitableTest [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.783 sec [junit] [junit] Testcase: testSameCFs(org.apache.cassandra.db.MultitableTest): Caused an ERROR [junit] null [junit] java.lang.NullPointerException [junit] at org.apache.cassandra.config.DatabaseDescriptor.getComparator(DatabaseDescriptor.java:896) [junit] at org.apache.cassandra.db.ColumnFamily.create(ColumnFamily.java:72) [junit] at org.apache.cassandra.db.MultitableTest.testSameCFs(MultitableTest.java:51) [junit] [junit] [junit] Testsuite: org.apache.cassandra.db.NameSortTest [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 4.197 sec [junit] [junit] Testsuite: org.apache.cassandra.db.OneCompactionTest [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 1.108 sec [junit] [junit] Testsuite: org.apache.cassandra.db.ReadMessageTest [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.729 sec [junit] [junit] Testsuite: org.apache.cassandra.db.RecoveryManager2Test [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.783 sec [junit] [junit] Testsuite: org.apache.cassandra.db.RecoveryManagerTest [junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 0.551 sec [junit] [junit] Testcase: testOne(org.apache.cassandra.db.RecoveryManagerTest): Caused an ERROR [junit] null [junit] java.lang.NullPointerException [junit] at org.apache.cassandra.config.DatabaseDescriptor.getComparator(DatabaseDescriptor.java:896) [junit] at org.apache.cassandra.db.ColumnFamily.create(ColumnFamily.java:72) [junit] at org.apache.cassandra.db.RecoveryManagerTest.testOne(RecoveryManagerTest.java:58) [junit] [junit] [junit] Testsuite: org.apache.cassandra.db.RemoveColumnFamilyTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.77 sec [junit] [junit] Testsuite: org.apache.cassandra.db.RemoveColumnFamilyWithFlush1Test [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.716 sec [junit] [junit] Testsuite: org.apache.cassandra.db.RemoveColumnFamilyWithFlush2Test [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.847 sec [junit] [junit] Testsuite: org.apache.cassandra.db.RemoveColumnTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.815 sec [junit] [junit] Testsuite: org.apache.cassandra.db.RemoveSubColumnTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.723 sec [junit] [junit] Testsuite: org.apache.cassandra.db.RemoveSuperColumnTest [junit] Tests run: 3, Failures: 0, Errors: 2, Time elapsed: 0.909 sec [junit] [junit] Testcase: testRemoveDeletedSubColumn(org.apache.cassandra.db.RemoveSuperColumnTest): Caused an ERROR [junit] null [junit] java.lang.NullPointerException [junit] at org.apache.cassandra.config.DatabaseDescriptor.getComparator(DatabaseDescriptor.java:896) [junit] at org.apache.cassandra.db.ColumnFamily.create(ColumnFamily.java:72) [junit] at org.apache.cassandra.db.RowMutation.add(RowMutation.java:157) [junit] at org.apache.cassandra.Util.addMutation(Util.java:39) [junit] at org.apache.cassandra.db.RemoveSuperColumnTest.testRemoveDeletedSubColumn(RemoveSuperColumnTest.java:76) [junit] [junit] [junit] Testcase: testRemoveSuperColumnWithNewData(org.apache.cassandra.db.RemoveSuperColumnTest): Caused an ERROR [junit] null [junit] java.lang.NullPointerException [junit] at org.apache.cassandra.config.DatabaseDescriptor.getComparator(DatabaseDescriptor.java:896) [junit] at org.apache.cassandra.db.ColumnFamily.create(ColumnFamily.java:72) [junit] at org.apache.cassandra.db.RowMutation.add(RowMutation.java:157) [junit] at org.apache.cassandra.Util.addMutation(Util.java:39) [junit] at org.apache.cassandra.db.RemoveSuperColumnTest.testRemoveSuperColumnWithNewData(RemoveSuperColumnTest.java:128) [junit] [junit] [junit] Testsuite: org.apache.cassandra.db.RowTest [junit] Tests run: 3, Failures: 0, Errors: 1, Time elapsed: 0.485 sec [junit] [junit] Testcase: testRepair(org.apache.cassandra.db.RowTest): Caused an ERROR [junit] null [junit] java.lang.NullPointerException [junit] at org.apache.cassandra.config.DatabaseDescriptor.getComparator(DatabaseDescriptor.java:896) [junit] at org.apache.cassandra.db.ColumnFamily.create(ColumnFamily.java:72) [junit] at org.apache.cassandra.db.RowTest.testRepair(RowTest.java:72) [junit] [junit] [junit] Testsuite: org.apache.cassandra.db.SuperColumnTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.163 sec [junit] [junit] Testsuite: org.apache.cassandra.db.SystemTableTest [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.457 sec [junit] [junit] Testsuite: org.apache.cassandra.db.TableTest [junit] Tests run: 10, Failures: 2, Errors: 1, Time elapsed: 2.06 sec [junit] [junit] Testcase: testGetRowNoColumns(org.apache.cassandra.db.TableTest): Caused an ERROR [junit] null [junit] java.lang.NullPointerException [junit] at org.apache.cassandra.config.DatabaseDescriptor.getComparator(DatabaseDescriptor.java:896) [junit] at org.apache.cassandra.db.ColumnFamily.create(ColumnFamily.java:72) [junit] at org.apache.cassandra.db.TableTest.testGetRowNoColumns(TableTest.java:74) [junit] [junit] [junit] Testcase: testGetSliceWithCutoff(org.apache.cassandra.db.TableTest): FAILED [junit] Unexpected column index size, block boundaries won't be where tests expect them. [junit] junit.framework.AssertionFailedError: Unexpected column index size, block boundaries won't be where tests expect them. [junit] at org.apache.cassandra.db.TableTest$3.run(TableTest.java:201) [junit] at org.apache.cassandra.db.TableTest.reTest(TableTest.java:55) [junit] at org.apache.cassandra.db.TableTest.testGetSliceWithCutoff(TableTest.java:232) [junit] [junit] [junit] Testcase: testGetSliceFromLarge(org.apache.cassandra.db.TableTest): FAILED [junit] null [junit] junit.framework.AssertionFailedError [junit] at org.apache.cassandra.db.TableTest.testGetSliceFromLarge(TableTest.java:376) [junit] [junit] [junit] Testsuite: org.apache.cassandra.db.TimeSortTest [junit] Tests run: 2, Failures: 0, Errors: 2, Time elapsed: 0.472 sec [junit] [junit] Testcase: testMixedSources(org.apache.cassandra.db.TimeSortTest): Caused an ERROR [junit] null [junit] java.lang.NullPointerException [junit] at org.apache.cassandra.config.DatabaseDescriptor.getComparator(DatabaseDescriptor.java:896) [junit] at org.apache.cassandra.db.ColumnFamily.create(ColumnFamily.java:72) [junit] at org.apache.cassandra.db.RowMutation.add(RowMutation.java:157) [junit] at org.apache.cassandra.db.TimeSortTest.testMixedSources(TimeSortTest.java:45) [junit] [junit] [junit] Testcase: testTimeSort(org.apache.cassandra.db.TimeSortTest): Caused an ERROR [junit] null [junit] java.lang.NullPointerException [junit] at org.apache.cassandra.config.DatabaseDescriptor.getComparator(DatabaseDescriptor.java:896) [junit] at org.apache.cassandra.db.ColumnFamily.create(ColumnFamily.java:72) [junit] at org.apache.cassandra.db.RowMutation.add(RowMutation.java:157) [junit] at org.apache.cassandra.db.TimeSortTest.testTimeSort(TimeSortTest.java:69) [junit] [junit] [junit] Testsuite: org.apache.cassandra.db.marshal.AsciiTypeTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.15 sec [junit] [junit] Testsuite: org.apache.cassandra.db.marshal.BytesTypeTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.156 sec [junit] [junit] Testsuite: org.apache.cassandra.db.marshal.UTF8TypeTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.106 sec [junit] [junit] Testsuite: org.apache.cassandra.dht.BootStrapperTest [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 1.029 sec [junit] [junit] Testsuite: org.apache.cassandra.dht.BootstrapTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.71 sec [junit] [junit] Testsuite: org.apache.cassandra.dht.CollatingOrderPreservingPartitionerTest [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 0.601 sec [junit] [junit] Testsuite: org.apache.cassandra.dht.OrderPreservingPartitionerTest [junit] Tests run: 7, Failures: 0, Errors: 0, Time elapsed: 0.489 sec [junit] [junit] Testsuite: org.apache.cassandra.dht.RandomPartitionerTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.16 sec [junit] [junit] Testsuite: org.apache.cassandra.dht.RangeTest [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.085 sec [junit] [junit] Testsuite: org.apache.cassandra.gms.ArrivalWindowTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.158 sec [junit] [junit] Testsuite: org.apache.cassandra.gms.GossipDigestTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.086 sec [junit] [junit] Testsuite: org.apache.cassandra.io.DataInputBufferTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.084 sec [junit] [junit] Testsuite: org.apache.cassandra.io.SSTableTest [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 1.239 sec [junit] [junit] Testsuite: org.apache.cassandra.locator.RackUnawareStrategyTest [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.61 sec [junit] [junit] Testsuite: org.apache.cassandra.net.CompactEndPointSerializationHelperTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.497 sec [junit] [junit] ------------- Standard Output --------------- [junit] 4 [junit] /127.0.0.1 [junit] ------------- ---------------- --------------- [junit] Testsuite: org.apache.cassandra.service.CassandraServerTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.404 sec [junit] [junit] Testsuite: org.apache.cassandra.utils.BloomFilterTest [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.789 sec [junit] [junit] Testsuite: org.apache.cassandra.utils.BoundedStatsDequeTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.07 sec [junit] [junit] Testsuite: org.apache.cassandra.utils.FBUtilitiesTest [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.171 sec [junit] [junit] Testsuite: org.apache.cassandra.utils.FilterTest [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.429 sec [junit] ----------------------------------------------------- best regards Paul. On Sat, Nov 14, 2009 at 4:26 PM, Michael Greene wrote: > > What can I do to run the tests? > `ant test` will run the unit tests > > ant gen-thrift-py > nosetests > > will run the system tests if you have python and nose available > > Michael > --000325558d6693fe12047856f277--