Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in porting on Cassandra 1.2.3 #52

Open
hero78119 opened this issue Mar 30, 2013 · 2 comments
Open

Error in porting on Cassandra 1.2.3 #52

hero78119 opened this issue Mar 30, 2013 · 2 comments

Comments

@hero78119
Copy link

Hi

Following the instruction we run successfully on 1.1.2
but after migrating to 1.2.3 and fire the log, we got the error massage:

java.lang.AssertionError
at org.apache.cassandra.thrift.ThriftSessionManager.currentSession(ThriftSessionManager.java:51)
at org.apache.cassandra.thrift.CassandraServer.state(CassandraServer.java:88)
at org.apache.cassandra.thrift.CassandraServer.validateLogin(CassandraServer.java:881)
at org.apache.cassandra.thrift.CassandraServer.set_keyspace(CassandraServer.java:1492)
at com.hmsonline.cassandra.triggers.dao.CassandraStore.getConnection(CassandraStore.java:42)
at com.hmsonline.cassandra.triggers.dao.ConfigurationStore.getConfiguration(ConfigurationStore.java:76)
at com.hmsonline.cassandra.triggers.dao.ConfigurationStore.isCommitLogEnabled(ConfigurationStore.java:44)
at com.hmsonline.cassandra.triggers.TriggerTask.run(TriggerTask.java:47)
at java.lang.Thread.run(Thread.java:636)

Keyspace-triggers and CF-Configuration, Triggers has been created in database,

So is this a configuration problem, or the Thrift API implementation has been changed?

thanks

@hero78119
Copy link
Author

After referring from other examples, try to hack some parts in the source code, the original error seems gone.

But we got the following error:

org.apache.cassandra.exceptions.InvalidRequestException: no keyspace has been specified
at org.apache.cassandra.service.ClientState.getKeyspace(ClientState.java:104)
at org.apache.cassandra.thrift.CassandraServer.doInsert_aroundBody2(CassandraServer.java:855)
at org.apache.cassandra.thrift.CassandraServer$AjcClosure3.run(CassandraServer.java:1)
at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:221)
at com.hmsonline.cassandra.triggers.CassandraServerTriggerAspect.writeToCommitLog(CassandraServerTriggerAspect.java:35)
at org.apache.cassandra.thrift.CassandraServer.doInsert(CassandraServer.java:854)
at org.apache.cassandra.thrift.CassandraServer.doInsert_aroundBody0(CassandraServer.java:848)
at org.apache.cassandra.thrift.CassandraServer$AjcClosure1.run(CassandraServer.java:1)
at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:221)
at com.hmsonline.cassandra.triggers.CassandraServerTriggerAspect.writeToCommitLog(CassandraServerTriggerAspect.java:35)
at org.apache.cassandra.thrift.CassandraServer.doInsert(CassandraServer.java:848)
at org.apache.cassandra.thrift.CassandraServer.internal_insert(CassandraServer.java:624)
at org.apache.cassandra.thrift.CassandraServer.insert(CassandraServer.java:645)
at org.apache.cassandra.thrift.Cassandra$Processor$insert.getResult(Cassandra.java:3526)
at org.apache.cassandra.thrift.Cassandra$Processor$insert.getResult(Cassandra.java:3514)
at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:32)
at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:34)
at org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:199)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:636)

@boneill42
Copy link
Contributor

Yeah, I would expect there may be issues attempting to use the triggers on 1.2. I know for sure that changes coming in through the CQL channel wouldn't be captured in the AOP, since it is tied to the thrift interface. For now, we are staying w/ 1.1 in production until the new triggers functionality is available. (hopefully in the upcoming release)
https://issues.apache.org/jira/browse/CASSANDRA-1311

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants