cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuki Morishita (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-3544) NPE on startup when there are permissions issues with directories
Date Fri, 16 Dec 2011 18:34:30 GMT

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

Yuki Morishita updated CASSANDRA-3544:
--------------------------------------

    Attachment: cassandra-1.0-3544.txt

You're right. I changed to assert only when directory exists.
                
> NPE on startup when there are permissions issues with directories
> -----------------------------------------------------------------
>
>                 Key: CASSANDRA-3544
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3544
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Tyler Hobbs
>            Assignee: Yuki Morishita
>            Priority: Minor
>             Fix For: 1.0.7
>
>         Attachments: cassandra-1.0-3544.txt, cassandra-1.0-3544.txt
>
>
> If the directories used by cassandra for data, commitlog, and saved caches aren't readable
due to permissions, you get an NPE on startup.  In particular, if none of them are readable,
you'll see something like this:
> {noformat}
> ERROR 14:50:11,945 Exception encountered during startup
> java.lang.NullPointerException
> 	at org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:391)
> 	at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:147)
> 	at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:337)
> 	at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:107)
> java.lang.NullPointerException
> 	at org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:391)
> 	at org.apache.cassandra.service.AbstractCassandraDaemon.setup(AbstractCassandraDaemon.java:147)
> 	at org.apache.cassandra.service.AbstractCassandraDaemon.activate(AbstractCassandraDaemon.java:337)
> 	at org.apache.cassandra.thrift.CassandraDaemon.main(CassandraDaemon.java:107)
> Exception encountered during startup: null
> {noformat}
> This traceback happens when the saved_caches directory isn't readable, but you can get
different ones if only the data or commitlog directories aren't readable.
> We should check the permissions of these directories before trying to list their contents.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message