incubator-cassandra-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Sabou <paul.sa...@gmail.com>
Subject Re: 2 problems running Cassandra as a developper
Date Sat, 14 Nov 2009 16:43:32 GMT
You are right. I have donea new svn chekout of the trunk and all the test
run smothly.
Thank you for your assistance. Sorry for bothering you with such trivial
things.

On Sat, Nov 14, 2009 at 5:29 PM, Michael Greene <michael.greene@gmail.com>wrote:

> They pass for me too.  Here is a good sample to pull out:
>
> [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)
>
> In trunk (at least in my working copy) getComparator doesn't span 896.
> I think some(?) of your files may be out of date.
>
> On Sat, Nov 14, 2009 at 10:17 AM, Jonathan Ellis <jbellis@gmail.com>
> wrote:
> > I don't know what is wrong with your setup.  svn trunk tests pass for
> > me and for hudson:
> > http://hudson.zones.apache.org/hudson/job/Cassandra/
> >
> > On Sat, Nov 14, 2009 at 10:05 AM, Paul Sabou <paul.sabou@gmail.com>
> wrote:
> >> 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 <
> michael.greene@gmail.com>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
> >>>
> >>
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message