Ivo Ladage - van Doorn created AMDATUCASSANDRA-163:
------------------------------------------------------
Summary: Configuration of the Hector PM is overruled by the
configuration of the cassandra client bundle
Key: AMDATUCASSANDRA-163
URL: http://jira.amdatu.org/jira/browse/AMDATUCASSANDRA-163
Project: Amdatu Cassandra
Issue Type: Bug
Components: Persistence Manager
Reporter: Ivo Ladage - van Doorn
Assignee: Ivo Ladage - van Doorn
Fix For: 0.2.3
The Cassandra client bundle and Hector PM have their own configuration files
and pass these when invoking HFactory.getOrCreateCluster(). However, since the
Hector and Thrift classes were moved to one bundle exporting these packages,
the Hector classes are loaded by a single classloader. As a result, when the
first bundle invokes getOrCreateCluster, the cluster is created and added to
the static cluster map. Then when the second bundle invokes this method, it
does not create a new cluster but returns the previous one instead.
This can easily be fixed by not invoking HFactory.getOrCreateCluster() directly
but new ThriftCluster(clusterName, cassandraHostConfigurator) and caching the
cluster instance in a local static variable.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
http://jira.amdatu.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Amdatu-developers mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-developers