Details
-
Bug
-
Status: Resolved
-
Urgent
-
Resolution: Fixed
-
None
-
Critical
Description
If I try to add a new node in a cluster that has materialized views, I get the following error:
ERROR 19:05:15 Unknown exception caught while attempting to update MaterializedView! mview.user_playlists java.lang.RuntimeException: Trying to get the view natural endpoint on a non-data replica at org.apache.cassandra.db.view.ViewUtils.getViewNaturalEndpoint(ViewUtils.java:103) ~[main/:na] at org.apache.cassandra.service.StorageProxy.mutateMV(StorageProxy.java:693) ~[main/:na] at org.apache.cassandra.db.view.ViewManager.pushViewReplicaUpdates(ViewManager.java:145) ~[main/:na] at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:482) [main/:na] at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:387) [main/:na] at org.apache.cassandra.db.Mutation.applyUnsafe(Mutation.java:215) [main/:na] at org.apache.cassandra.streaming.StreamReceiveTask$OnCompletionRunnable.run(StreamReceiveTask.java:162) [main/:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_45] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_45] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45] ERROR 19:05:15 Error applying streamed sstable: java.lang.RuntimeException: Trying to get the view natural endpoint on a non-data replica at org.apache.cassandra.db.view.ViewUtils.getViewNaturalEndpoint(ViewUtils.java:103) ~[main/:na] at org.apache.cassandra.service.StorageProxy.mutateMV(StorageProxy.java:693) ~[main/:na] at org.apache.cassandra.db.view.ViewManager.pushViewReplicaUpdates(ViewManager.java:145) ~[main/:na] at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:482) ~[main/:na] at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:387) ~[main/:na] at org.apache.cassandra.db.Mutation.applyUnsafe(Mutation.java:215) ~[main/:na] at org.apache.cassandra.streaming.StreamReceiveTask$OnCompletionRunnable.run(StreamReceiveTask.java:162) ~[main/:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_45] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_45] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45] WARN 19:05:18 Writing large partition mview/genre_to_user:genre_3 (116986142 bytes) WARN 19:05:21 Writing large partition mview/genre_to_user:genre_2 (116985746 bytes) WARN 19:05:24 Writing large partition mview/genre_to_user:genre_5 (116986337 bytes) ERROR 19:05:33 Unknown exception caught while attempting to update MaterializedView! mview.user_playlists java.lang.RuntimeException: Trying to get the view natural endpoint on a non-data replica at org.apache.cassandra.db.view.ViewUtils.getViewNaturalEndpoint(ViewUtils.java:103) ~[main/:na] at org.apache.cassandra.service.StorageProxy.mutateMV(StorageProxy.java:693) ~[main/:na] at org.apache.cassandra.db.view.ViewManager.pushViewReplicaUpdates(ViewManager.java:145) ~[main/:na] at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:482) [main/:na] at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:387) [main/:na] at org.apache.cassandra.db.Mutation.applyUnsafe(Mutation.java:215) [main/:na] at org.apache.cassandra.streaming.StreamReceiveTask$OnCompletionRunnable.run(StreamReceiveTask.java:162) [main/:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_45] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_45] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45] ERROR 19:05:33 Error applying streamed sstable: java.lang.RuntimeException: Trying to get the view natural endpoint on a non-data replica at org.apache.cassandra.db.view.ViewUtils.getViewNaturalEndpoint(ViewUtils.java:103) ~[main/:na] at org.apache.cassandra.service.StorageProxy.mutateMV(StorageProxy.java:693) ~[main/:na] at org.apache.cassandra.db.view.ViewManager.pushViewReplicaUpdates(ViewManager.java:145) ~[main/:na] at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:482) ~[main/:na] at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:387) ~[main/:na] at org.apache.cassandra.db.Mutation.applyUnsafe(Mutation.java:215) ~[main/:na] at org.apache.cassandra.streaming.StreamReceiveTask$OnCompletionRunnable.run(StreamReceiveTask.java:162) ~[main/:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_45] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_45] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45] ERROR 19:05:40 Unknown exception caught while attempting to update MaterializedView! mview.user_playlists java.lang.RuntimeException: Trying to get the view natural endpoint on a non-data replica at org.apache.cassandra.db.view.ViewUtils.getViewNaturalEndpoint(ViewUtils.java:103) ~[main/:na] at org.apache.cassandra.service.StorageProxy.mutateMV(StorageProxy.java:693) ~[main/:na] at org.apache.cassandra.db.view.ViewManager.pushViewReplicaUpdates(ViewManager.java:145) ~[main/:na] at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:482) [main/:na] at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:387) [main/:na] at org.apache.cassandra.db.Mutation.applyUnsafe(Mutation.java:215) [main/:na] at org.apache.cassandra.streaming.StreamReceiveTask$OnCompletionRunnable.run(StreamReceiveTask.java:162) [main/:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_45] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_45] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45] ERROR 19:05:40 Error applying streamed sstable: java.lang.RuntimeException: Trying to get the view natural endpoint on a non-data replica at org.apache.cassandra.db.view.ViewUtils.getViewNaturalEndpoint(ViewUtils.java:103) ~[main/:na] at org.apache.cassandra.service.StorageProxy.mutateMV(StorageProxy.java:693) ~[main/:na] at org.apache.cassandra.db.view.ViewManager.pushViewReplicaUpdates(ViewManager.java:145) ~[main/:na] at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:482) ~[main/:na] at org.apache.cassandra.db.Keyspace.apply(Keyspace.java:387) ~[main/:na] at org.apache.cassandra.db.Mutation.applyUnsafe(Mutation.java:215) ~[main/:na] at org.apache.cassandra.streaming.StreamReceiveTask$OnCompletionRunnable.run(StreamReceiveTask.java:162) ~[main/:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_45] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_45] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_45]