[jira] [Updated] (CASSANDRA-10569) Keyspace validation errors are getting lost in system_add_keyspace

2015-12-04 Thread Sam Tunnicliffe (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sam Tunnicliffe updated CASSANDRA-10569:

Component/s: Distributed Metadata

> Keyspace validation errors are getting lost in system_add_keyspace
> --
>
> Key: CASSANDRA-10569
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10569
> Project: Cassandra
>  Issue Type: Bug
>  Components: Distributed Metadata
>Reporter: Mike Adamson
>Assignee: Sam Tunnicliffe
> Fix For: 3.0.0
>
>
> The following:
> {noformat}
> cassandraserver.system_add_keyspace(
> new KsDef("xxx", SimpleStrategy.class.getSimpleName(), 
>   Lists.newArrayList()));
> {noformat}
> used to throw an {{InvalidRequestException}} in 2.1. 
> In 3.0 the strategy validation has been removed from 
> {{KeyspaceMetadata.validate}} so the strategy errors don't get picked up 
> until the schema change has been announced. As a result the 
> {{ConfigurationError}} is swallowed in {{FBUtilities.waitOnFuture}} and 
> thrown on as a {{RuntimeException}}.
> This possibly affects {{system_update_keyspace}} as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (CASSANDRA-10569) Keyspace validation errors are getting lost in system_add_keyspace

2015-10-26 Thread Paulo Motta (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paulo Motta updated CASSANDRA-10569:

Reviewer: Paulo Motta

> Keyspace validation errors are getting lost in system_add_keyspace
> --
>
> Key: CASSANDRA-10569
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10569
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Reporter: Mike Adamson
>Assignee: Sam Tunnicliffe
> Fix For: 3.0.0
>
>
> The following:
> {noformat}
> cassandraserver.system_add_keyspace(
> new KsDef("xxx", SimpleStrategy.class.getSimpleName(), 
>   Lists.newArrayList()));
> {noformat}
> used to throw an {{InvalidRequestException}} in 2.1. 
> In 3.0 the strategy validation has been removed from 
> {{KeyspaceMetadata.validate}} so the strategy errors don't get picked up 
> until the schema change has been announced. As a result the 
> {{ConfigurationError}} is swallowed in {{FBUtilities.waitOnFuture}} and 
> thrown on as a {{RuntimeException}}.
> This possibly affects {{system_update_keyspace}} as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)


[jira] [Updated] (CASSANDRA-10569) Keyspace validation errors are getting lost in system_add_keyspace

2015-10-22 Thread Mike Adamson (JIRA)

 [ 
https://issues.apache.org/jira/browse/CASSANDRA-10569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mike Adamson updated CASSANDRA-10569:
-
Description: 
The following:
{noformat}
cassandraserver.system_add_keyspace(
new KsDef("xxx", SimpleStrategy.class.getSimpleName(), 
  Lists.newArrayList()));
{noformat}
used to throw an {{InvalidRequestException}} in 2.1. 

In 3.0 the strategy validation has been removed from 
{{KeyspaceMetadata.validate}} so the strategy errors don't get picked up until 
the schema change has been announced. As a result the {{ConfigurationError}} is 
swallowed in {{FBUtilities.waitOnFuture}} and thrown on as a 
{{RuntimeException}}.

This possibly affects {{system_update_keyspace}} as well.


  was:
The following:
{noformat}
cassandraserver.system_add_keyspace(
new KsDef("xxx", SimpleStrategy.class.getSimpleName(), 
  Lists.newArrayList()));
{noformat}
used to throw an {{InvalidRequestException}} in 2.1. 

In 3.0 the strategy validation has been removed from 
{{KeyspaceMetadata.validate}} so the strategy errors don't get picked up until 
the schema change has been announced. As a result the {{ConfigurationError}} is 
swallowed in {{FBUtilities.waitOnFuture}} and thrown on as a 
{{RuntimeException}}.



> Keyspace validation errors are getting lost in system_add_keyspace
> --
>
> Key: CASSANDRA-10569
> URL: https://issues.apache.org/jira/browse/CASSANDRA-10569
> Project: Cassandra
>  Issue Type: Bug
>  Components: Core
>Reporter: Mike Adamson
>Assignee: Sam Tunnicliffe
> Fix For: 3.0.0
>
>
> The following:
> {noformat}
> cassandraserver.system_add_keyspace(
> new KsDef("xxx", SimpleStrategy.class.getSimpleName(), 
>   Lists.newArrayList()));
> {noformat}
> used to throw an {{InvalidRequestException}} in 2.1. 
> In 3.0 the strategy validation has been removed from 
> {{KeyspaceMetadata.validate}} so the strategy errors don't get picked up 
> until the schema change has been announced. As a result the 
> {{ConfigurationError}} is swallowed in {{FBUtilities.waitOnFuture}} and 
> thrown on as a {{RuntimeException}}.
> This possibly affects {{system_update_keyspace}} as well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)