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

KeyspaceAction ALTER not supported [DATACASS-502] #669

Closed
spring-projects-issues opened this issue Oct 3, 2017 · 1 comment
Closed

KeyspaceAction ALTER not supported [DATACASS-502] #669

spring-projects-issues opened this issue Oct 3, 2017 · 1 comment
Assignees
Labels
in: core type: bug

Comments

@spring-projects-issues
Copy link

spring-projects-issues commented Oct 3, 2017

Bozhidar Bozhanov opened DATACASS-502 and commented

Configuring the keyspace (within a cluster element) as follows:

<cassandra:keyspace action="ALTER" name="${cassandra.keyspace}" />

throws an exception in 2.0.0 (used to work in previous versions). The root of the exception is:

Caused by: java.lang.IllegalStateException: KeyspaceAction ALTER not supported
at org.springframework.data.cassandra.config.KeyspaceActionSpecificationFactoryBean.afterPropertiesSet(KeyspaceActionSpecificationFactoryBean.j

There is no case to handle the ALTER value even though it is a valid enum value. That enum value is not used anywhere else. If it is not going to be supported, maybe remove it from the enum. If it should be supported, the cooresponding case in the switch statement should be provided


Affects: 2.0 GA (Kay)

Referenced from: commits d16d526, 282bce0, de92c84, 2dcd9c8

Backported to: 2.0.1 (Kay SR1)

@spring-projects-issues
Copy link
Author

spring-projects-issues commented Oct 4, 2017

Mark Paluch commented

ALTER did not lead to any change in previous versions. We will provide an implementation to alter the keyspace on startup with the next bugfix versions

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

No branches or pull requests

2 participants