You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Michael Shuler (JIRA)" <ji...@apache.org> on 2015/09/01 17:42:45 UTC

[jira] [Reopened] (CASSANDRA-10209) Missing role manager in cassandra.yaml causes unexpected behaviour

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

Michael Shuler reopened CASSANDRA-10209:
----------------------------------------

This patch causes an NPE in CQLSSTableWriterClientTest. CI showed this commit as the regression, and I can repro - previous commit passes this test OK.

{noformat}
    [junit] Testsuite: org.apache.cassandra.io.sstable.CQLSSTableWriterClientTest
    [junit] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.63 sec
    [junit] 
    [junit] Testcase: testWriterInClientMode(org.apache.cassandra.io.sstable.CQLSSTableWriterClientTest):       Caused an ERROR
    [junit] null
    [junit] java.lang.ExceptionInInitializerError
    [junit]     at org.apache.cassandra.io.sstable.CQLSSTableWriter$Builder.getStatement(CQLSSTableWriter.java:496)
    [junit]     at org.apache.cassandra.io.sstable.CQLSSTableWriter$Builder.forTable(CQLSSTableWriter.java:351)
    [junit]     at org.apache.cassandra.io.sstable.CQLSSTableWriterClientTest.testWriterInClientMode(CQLSSTableWriterClientTest.java:74)
    [junit] Caused by: java.lang.NullPointerException
    [junit]     at org.apache.cassandra.service.ClientState.<clinit>(ClientState.java:69)
    [junit] 
    [junit] 
    [junit] Test org.apache.cassandra.io.sstable.CQLSSTableWriterClientTest FAILED
{noformat}

> Missing role manager in cassandra.yaml causes unexpected behaviour
> ------------------------------------------------------------------
>
>                 Key: CASSANDRA-10209
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10209
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Sam Tunnicliffe
>            Assignee: Sam Tunnicliffe
>            Priority: Minor
>             Fix For: 2.2.x, 3.0 beta 2
>
>
> On upgrading to 2.2+, if the new {{role_manager}} option is not added to {{cassandra.yaml}}, an instance of the default {{CassandraRoleManager}} is created during initialization of {{DatabaseDescriptor}}. This is a problem as the set of role options supported by {{CRM}} depends on the configured {{IAuthenticator}}, which at that point in time is always {{AllowAllAuthenticator}}.
> This StackOverflow post describes the problem; the configured authenticator is {{PasswordAuthenticator}}, the role manager should allow roles to be created using the {{PASSWORD}} option, but it does not.
> http://stackoverflow.com/questions/31820914/in-cassandra-2-2-unable-to-create-role-containing-password
> The simple workaround is to ensure that yaml contains the role manager option
> {code}
> role_manager: CassandraRoleManager
> {code}



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