cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Tunnicliffe (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (CASSANDRA-6790) Triggers are broken in trunk because of imutable list
Date Tue, 11 Mar 2014 11:36:43 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-6790?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sam Tunnicliffe reassigned CASSANDRA-6790:
------------------------------------------

    Assignee: Sam Tunnicliffe  (was: Edward Capriolo)

> 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: Sam Tunnicliffe
>             Fix For: 2.1 beta2
>
>         Attachments: 0001-Apply-trigger-mutations-when-base-mutation-list-is-i.patch
>
>
> 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.2#6252)

Mime
View raw message