cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Jirsa (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-12745) Cassandra Unknown exception caught while attempting to update MaterializedView!
Date Wed, 05 Oct 2016 22:36:20 GMT

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

Jeff Jirsa commented on CASSANDRA-12745:
----------------------------------------

The specific assert you're hitting was removed in CASSANDRA-11475 , which was a pretty significant
refactor to the materialized view code - have you tested this issue on a more recent version,
such as 3.9?




> Cassandra Unknown exception caught while attempting to update MaterializedView!
> -------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-12745
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12745
>             Project: Cassandra
>          Issue Type: Bug
>         Environment: Cassandra 3.5.0
>            Reporter: Serhat Rıfat Demircan
>            Priority: Critical
>
> Following error occured only on a node in cluster which have 9 nodes.
> {noformat}
> ERROR [SharedPool-Worker-7] 2016-10-01 00:11:15,839 Keyspace.java:521 - Unknown exception
caught while attempting to update MaterializedView! keyspace.table_name
> java.lang.AssertionError: Only one cell version can be marked Existing; existingCell:
TemporalCell{value=0000001e01631b2639cecf0d58cc000000, timestamp=1475171386448000, ttl=0,
localDeletionTime=2147483647, isNew=false}, cell: TemporalCell{value=0000001e01631b2639cecf0d58cc000000,
timestamp=1475269876398001, ttl=0, localDeletionTime=2147483647, isNew=false}
>        at org.apache.cassandra.db.view.TemporalRow$TemporalCell$Versions.setVersion(TemporalRow.java:225)
~[apache-cassandra-3.5.0.jar:3.5.0]
>        at org.apache.cassandra.db.view.TemporalRow.addColumnValue(TemporalRow.java:371)
~[apache-cassandra-3.5.0.jar:3.5.0]
>        at org.apache.cassandra.db.view.TemporalRow.addCell(TemporalRow.java:414) ~[apache-cassandra-3.5.0.jar:3.5.0]
>        at org.apache.cassandra.db.view.TemporalRow$Set.addRow(TemporalRow.java:554) ~[apache-cassandra-3.5.0.jar:3.5.0]
>        at org.apache.cassandra.db.view.View.createForDeletionInfo(View.java:518) ~[apache-cassandra-3.5.0.jar:3.5.0]
>        at org.apache.cassandra.db.view.View.createMutations(View.java:704) ~[apache-cassandra-3.5.0.jar:3.5.0]
>        at org.apache.cassandra.db.view.ViewManager.pushViewReplicaUpdates(ViewManager.java:138)
~[apache-cassandra-3.5.0.jar:3.5.0]
>        at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:516) [apache-cassandra-3.5.0.jar:3.5.0]
>        at org.apache.cassandra.db.Keyspace.lambda$apply$67(Keyspace.java:469) [apache-cassandra-3.5.0.jar:3.5.0]
>        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_101]
>        at org.apache.cassandra.concurrent.AbstractLocalAwareExecutorService$FutureTask.run(AbstractLocalAwareExecutorService.java:164)
~[apache-cassandra-3.5.0.jar:3.5.0]
>        at org.apache.cassandra.concurrent.SEPWorker.run(SEPWorker.java:105) ~[apache-cassandra-3.5.0.jar:3.5.0]
>        at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_101]
> {noformat}
> Table and view definitions:
> {noformat}
> CREATE TABLE keyspace.table_name (
>     a bigint,
>     b timestamp,
>     c bigint,
>     d decimal,
>     PRIMARY KEY (a, b, c)
> ) WITH CLUSTERING ORDER BY (b ASC, c ASC)
> CREATE MATERIALIZED VIEW keyspace.mv_table_name AS
>     SELECT *
>     FROM keyspace.table_name
>     WHERE b IS NOT NULL AND c IS NOT NULL
>     PRIMARY KEY (b, c, a)
>     WITH CLUSTERING ORDER BY (b ASC, a ASC)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message