[OP-35] Support any keyspace name Created: 16/Apr/14  Updated: 15/Jul/14  Resolved: 05/Jun/14

Status: Closed
Project: Opush
Component/s: None
Affects Version/s: 3.0.0
Fix Version/s: 3.0.1

Type: Bug Priority: Normal
Reporter: Thomas HILAIRE Assignee: Thomas HILAIRE
Resolution: Fixed Votes: 0
Labels: cassandra
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Rank: 6149
Sprint: Lyon Kanban


Reproduction steps:

  • have an opush 3.0.0 and a cassandra
  • in cassandra, create a keyspace not named "opush" (so "mykeyspace" for example)
  • configure opush to use this keyspace (change it in /etc/opush/cassandra.ini)
  • restart opush
  • connect to CRaSH and run "schema install"

Current behavior:
Command output:

% schema install 
An error occurred when installing the schema: schema_version table does not exists

It fails because CassandraService.errorIfNoTable always uses the keyspace "opush".

Expected behavior:
Command output:

% schema install 
Schema version 1 has been installed, please restart opush to get the service up

After a restart opush must work correctly

Comment by Thomas HILAIRE [ 11/Jul/14 ]

Impacts & QA: only things explained in Reproduction steps and Expected behavior

Comment by Stephane COLSON [ 15/Jul/14 ]

OK with opush version 3.0.1-rc3, tested on CentOS

Generated at Sat Oct 31 20:33:53 CET 2020 using JIRA 6.1.1#6155-sha1:7188aeec9a6b57d61ea04c52f235f15f55c105e2.