cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CASSANDRA-2258) service.SerializationsTest failes under cobertura
Date Mon, 14 Mar 2011 22:11:29 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-2258?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13006665#comment-13006665
] 

Jonathan Ellis commented on CASSANDRA-2258:
-------------------------------------------

bq. The second disables instrumenting *Token.class during the instrumentation phase. Upshot
is that we don't get code coverage reports for those classes.

+1 this approach if you add a comment to build.xml for posterity :)

> service.SerializationsTest failes under cobertura
> -------------------------------------------------
>
>                 Key: CASSANDRA-2258
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2258
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tests
>            Reporter: Jonathan Ellis
>            Assignee: Gary Dusbabek
>            Priority: Minor
>             Fix For: 0.7.5
>
>         Attachments: v1-0001-do-not-instrument-the-Token-classes.txt, v1-0001-fix-cobertura-brokenness-by-forcing-serialVersionUIDs.txt
>
>
> ant codecoverage -Dtest.name=SerializationsTest gives
> {noformat}
>     [junit] Testcase: testTreeResponseRead(org.apache.cassandra.service.SerializationsTest):
Caused an ERROR
>     [junit] java.io.InvalidClassException: org.apache.cassandra.dht.BigIntegerToken;
local class incompatible: stream classdesc serialVersionUID = -5833589141319293006, local
class serialVersionUID = 2280189098581028124
>     [junit] java.lang.RuntimeException: java.io.InvalidClassException: org.apache.cassandra.dht.BigIntegerToken;
local class incompatible: stream classdesc serialVersionUID = -5833589141319293006, local
class serialVersionUID = 2280189098581028124
>     [junit] 	at org.apache.cassandra.service.AntiEntropyService$TreeResponseVerbHandler.deserialize(AntiEntropyService.java:634)
>     [junit] 	at org.apache.cassandra.service.SerializationsTest.testTreeResponseRead(SerializationsTest.java:90)
>     [junit] Caused by: java.io.InvalidClassException: org.apache.cassandra.dht.BigIntegerToken;
local class incompatible: stream classdesc serialVersionUID = -5833589141319293006, local
class serialVersionUID = 2280189098581028124
>     [junit] 	at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
>     [junit] 	at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1582)
>     [junit] 	at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1495)
>     [junit] 	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1731)
>     [junit] 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
>     [junit] 	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
>     [junit] 	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
>     [junit] 	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
>     [junit] 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
>     [junit] 	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
>     [junit] 	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
>     [junit] 	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
>     [junit] 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
>     [junit] 	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
>     [junit] 	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
>     [junit] 	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
>     [junit] 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
>     [junit] 	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
>     [junit] 	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
>     [junit] 	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
>     [junit] 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
>     [junit] 	at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
>     [junit] 	at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
>     [junit] 	at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
>     [junit] 	at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
>     [junit] 	at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
>     [junit] 	at org.apache.cassandra.service.AntiEntropyService$TreeResponseVerbHandler.deserialize(AntiEntropyService.java:630)
> {noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message