cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulo Motta (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-8143) Partitioner should not be accessed through StorageService
Date Fri, 04 Sep 2015 20:29:46 GMT


Paulo Motta commented on CASSANDRA-8143:

Thanks for looking into this and for the suggestion, [~barnie]. This indeed fixed the {{sstable_generation_loading_test}}
test without affecting CASSANDRA-9839 functionality. I added a message to the partitioner
assertion on {{CFMetadata}}.

However, the dtest is still printing the assertion error (without failing though):
ERROR 19:43:30 Error when closing class$InstanceTidier@1221863775:/tmp/dtest-CW1jQy/test/node1/data_copy/ks/counter1-19add000533d11e59743358ed15ecf72/ma-1-big
java.lang.AssertionError: This assertion failure is probably due to accessing Schema.instance
from client-mode tools - See CASSANDRA-8143.
	at org.apache.cassandra.config.CFMetaData.<init>( ~[main/:na]
	at org.apache.cassandra.config.CFMetaData.<init>( ~[main/:na]
	at org.apache.cassandra.config.CFMetaData$ ~[main/:na]
	at org.apache.cassandra.config.CFMetaData.compile( ~[main/:na]
	at org.apache.cassandra.schema.SchemaKeyspace.compile( ~[main/:na]
	at org.apache.cassandra.schema.SchemaKeyspace.<clinit>( ~[main/:na]
	at org.apache.cassandra.config.Schema.<init>( ~[main/:na]
	at org.apache.cassandra.config.Schema.<clinit>( ~[main/:na]
	at org.apache.cassandra.utils.concurrent.Ref$GlobalState.release( ~[main/:na]
	at org.apache.cassandra.utils.concurrent.Ref$State.release( ~[main/:na]
	at org.apache.cassandra.utils.concurrent.Ref.release( [main/:na]
	at [main/:na]
	at [main/:na]
	at$ [guava-18.0.jar:na]
	at [guava-18.0.jar:na]
	at [guava-18.0.jar:na]
	at org.apache.cassandra.streaming.StreamResultFuture.maybeComplete(
	at org.apache.cassandra.streaming.StreamResultFuture.handleSessionComplete(
	at org.apache.cassandra.streaming.StreamSession.closeSession( [main/:na]
	at org.apache.cassandra.streaming.StreamSession.complete( [main/:na]
	at org.apache.cassandra.streaming.StreamSession.messageReceived( [main/:na]
	at org.apache.cassandra.streaming.ConnectionHandler$
	at [na:1.8.0_45]

What can we do to fix this, maybe skip releasing references on client mode?

> Partitioner should not be accessed through StorageService
> ---------------------------------------------------------
>                 Key: CASSANDRA-8143
>                 URL:
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Branimir Lambov
>            Assignee: Branimir Lambov
>             Fix For: 3.0 beta 1
> The configured partitioner is no longer the only partitioner in use in the database,
as e.g. index tables use LocalPartitioner.
> To make sure the correct partitioner is used for each table, accesses of StorageService.getPartitioner()
should be replaced with retrieval of the CFS-specific partitioner.

This message was sent by Atlassian JIRA

View raw message