cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward Capriolo (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-6790) Triggers are broken in trunk because of imutable list
Date Sat, 01 Mar 2014 23:51:19 GMT

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

Edward Capriolo commented on CASSANDRA-6790:
--------------------------------------------

I added a trigger implementing class to src/main rather then src/test because when we add
python tests we need a compiled trigger already present on the classpath.

> Triggers are broken in trunk because of imutable list
> -----------------------------------------------------
>
>                 Key: CASSANDRA-6790
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6790
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Edward Capriolo
>            Assignee: Edward Capriolo
>             Fix For: 2.1 beta1
>
>
> The trigger code is uncovered by any tests (that I can find). When inserting single columns
an immutable list is created. When the trigger attempts to edit this list the operation fails.
> Fix coming shortly.
> {noformat}
>     java.lang.UnsupportedOperationException
>             at java.util.AbstractList.add(AbstractList.java:148)
>             at java.util.AbstractList.add(AbstractList.java:108)
>             at java.util.AbstractCollection.addAll(AbstractCollection.java:342)
>             at org.apache.cassandra.service.StorageProxy.mutateWithTriggers(StorageProxy.java:522)
>             at org.apache.cassandra.thrift.CassandraServer.doInsert(CassandraServer.java:1084)
>             at org.apache.cassandra.thrift.CassandraServer.doInsert(CassandraServer.java:1066)
>             at org.apache.cassandra.thrift.CassandraServer.internal_insert(CassandraServer.java:676)
>             at org.apache.cassandra.thrift.CassandraServer.insert(CassandraServer.java:697)
>             at org.apache.cassandra.triggers.TriggerTest.createATriggerWithCqlAndReadItBackFromthrift(TriggerTest.java:108)
>             at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>             at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>             at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>             at java.lang.reflect.Method.invoke(Method.java:606)
>             at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
>             at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
>             at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
>             at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
>             at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>             at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>             at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
>             at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:44)
>             at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180)
>             at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41)
>             at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173)
>             at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
>             at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
>             at org.junit.runners.ParentRunner.run(ParentRunner.java:220)
>             at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
>             at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>             at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
>             at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
>             at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
>             at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message