cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robert Stupp (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (CASSANDRA-9112) Remove ternary construction of SegmentedFile.Builder in readers
Date Sat, 04 Apr 2015 09:49:33 GMT

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

Robert Stupp reopened CASSANDRA-9112:
-------------------------------------

The patch makes C* fail on startup.

Steps to reproduce:
# {{rm -rf data/*}}
# {{bin/cassandra}} (first startup works fine)
# {{kill <cassandra-pid>}}
# {{bin/cassandra}} (fails with error messages below)

{code}
INFO  09:36:05 Initializing key cache with capacity of 100 MBs.
INFO  09:36:05 Initializing row cache with capacity of 0 MBs
INFO  09:36:05 Initializing counter cache with capacity of 50 MBs
INFO  09:36:05 Scheduling counter cache save to every 7200 seconds (going to save all keys).
INFO  09:36:05 Initializing system.schema_triggers
INFO  09:36:06 Opening bin/../data/data/system/schema_triggers-0359bc7171233ee19a4ab9dfb11fc125/la-1-big
(32 bytes)
INFO  09:36:06 Opening bin/../data/data/system/schema_triggers-0359bc7171233ee19a4ab9dfb11fc125/la-2-big
(32 bytes)
INFO  09:36:06 Opening bin/../data/data/system/schema_triggers-0359bc7171233ee19a4ab9dfb11fc125/la-3-big
(32 bytes)
ERROR 09:36:06 Exception in thread Thread[SSTableBatchOpen:2,5,main]
java.lang.AssertionError: null
	at org.apache.cassandra.io.util.SegmentedFile.getBuilder(SegmentedFile.java:136) ~[main/:na]
	at org.apache.cassandra.io.sstable.format.SSTableReader.load(SSTableReader.java:647) ~[main/:na]
	at org.apache.cassandra.io.sstable.format.SSTableReader.load(SSTableReader.java:615) ~[main/:na]
	at org.apache.cassandra.io.sstable.format.SSTableReader.open(SSTableReader.java:434) ~[main/:na]
	at org.apache.cassandra.io.sstable.format.SSTableReader.open(SSTableReader.java:343) ~[main/:na]
	at org.apache.cassandra.io.sstable.format.SSTableReader$4.run(SSTableReader.java:471) ~[main/:na]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_76]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_76]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_76]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_76]
	at java.lang.Thread.run(Thread.java:745) [na:1.7.0_76]
ERROR 09:36:06 Exception in thread Thread[SSTableBatchOpen:1,5,main]
java.lang.AssertionError: null
	at org.apache.cassandra.io.util.SegmentedFile.getBuilder(SegmentedFile.java:136) ~[main/:na]
	at org.apache.cassandra.io.sstable.format.SSTableReader.load(SSTableReader.java:647) ~[main/:na]
	at org.apache.cassandra.io.sstable.format.SSTableReader.load(SSTableReader.java:615) ~[main/:na]
	at org.apache.cassandra.io.sstable.format.SSTableReader.open(SSTableReader.java:434) ~[main/:na]
	at org.apache.cassandra.io.sstable.format.SSTableReader.open(SSTableReader.java:343) ~[main/:na]
	at org.apache.cassandra.io.sstable.format.SSTableReader$4.run(SSTableReader.java:471) ~[main/:na]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_76]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_76]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_76]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_76]
	at java.lang.Thread.run(Thread.java:745) [na:1.7.0_76]
ERROR 09:36:06 Exception in thread Thread[SSTableBatchOpen:3,5,main]
java.lang.AssertionError: null
	at org.apache.cassandra.io.util.SegmentedFile.getBuilder(SegmentedFile.java:136) ~[main/:na]
	at org.apache.cassandra.io.sstable.format.SSTableReader.load(SSTableReader.java:647) ~[main/:na]
	at org.apache.cassandra.io.sstable.format.SSTableReader.load(SSTableReader.java:615) ~[main/:na]
	at org.apache.cassandra.io.sstable.format.SSTableReader.open(SSTableReader.java:434) ~[main/:na]
	at org.apache.cassandra.io.sstable.format.SSTableReader.open(SSTableReader.java:343) ~[main/:na]
	at org.apache.cassandra.io.sstable.format.SSTableReader$4.run(SSTableReader.java:471) ~[main/:na]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) ~[na:1.7.0_76]
	at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_76]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_76]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_76]
	at java.lang.Thread.run(Thread.java:745) [na:1.7.0_76]
{code}

Followed by this message at the end of the log file (note: it's just the last error in the
log - not related to new role stuff).

{code}
Exception (java.lang.AssertionError) encountered during startup: org.apache.cassandra.db.KeyspaceNotDefinedException:
Keyspace system_auth does not exist
java.lang.AssertionError: org.apache.cassandra.db.KeyspaceNotDefinedException: Keyspace system_auth
does not exist
	at org.apache.cassandra.auth.CassandraRoleManager.prepare(CassandraRoleManager.java:427)
	at org.apache.cassandra.auth.CassandraRoleManager.setup(CassandraRoleManager.java:139)
	at org.apache.cassandra.service.StorageService.doAuthSetup(StorageService.java:910)
	at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:837)
	at org.apache.cassandra.service.StorageService.initServer(StorageService.java:574)
	at org.apache.cassandra.service.StorageService.initServer(StorageService.java:461)
	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:412)
	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:561)
	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:668)
Caused by: org.apache.cassandra.db.KeyspaceNotDefinedException: Keyspace system_auth does
not exist
	at org.apache.cassandra.thrift.ThriftValidation.validateKeyspace(ThriftValidation.java:85)
	at org.apache.cassandra.thrift.ThriftValidation.validateColumnFamily(ThriftValidation.java:109)
	at org.apache.cassandra.cql3.statements.SelectStatement$RawStatement.prepare(SelectStatement.java:734)
	at org.apache.cassandra.auth.CassandraRoleManager.prepare(CassandraRoleManager.java:423)
	... 8 more
{code}


> Remove ternary construction of SegmentedFile.Builder in readers
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-9112
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-9112
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Benedict
>            Assignee: Benedict
>            Priority: Trivial
>             Fix For: 3.0
>
>         Attachments: 9112.txt
>
>
> Self explanatory



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

Mime
View raw message