cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Ellis (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-7091) java.lang.NullPointerException at org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:437)
Date Fri, 25 Apr 2014 16:36:18 GMT

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

Jonathan Ellis updated CASSANDRA-7091:
--------------------------------------

         Reviewer: Yuki Morishita
    Fix Version/s:     (was: 2.0.7)
                   2.0.8
         Assignee: Vivek Mishra

> java.lang.NullPointerException 	at org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:437)

> ------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-7091
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7091
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Vivek Mishra
>            Assignee: Vivek Mishra
>             Fix For: 2.0.8
>
>
> java.lang.NullPointerException
> 	at org.apache.cassandra.db.ColumnFamilyStore.scrubDataDirectories(ColumnFamilyStore.java:437)
> 	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:243)
> 	at org.apache.cassandra.service.CassandraDaemon.init(CassandraDaemon.java:414)
> 	at org.apache.cassandra.service.EmbeddedCassandraService.start(EmbeddedCassandraService.java:52)
> Fix { ColumnFamilyStore.java }
> ==
> Change 
> for (File dir : directories.getCFDirectories())
> {
> File[] lockfiles = dir.listFiles(filter);
> if (lockfiles.length == 0)
> continue;
> logger.info("Removing SSTables from failed streaming session. Found {} files to cleanup.",
Integer.valueOf(lockfiles.length));
> WITH 
> for (File dir : directories.getCFDirectories())
> {
> File[] lockfiles = dir.listFiles(filter);
> if (lockfiles != null && lockfiles.length == 0)
> {
> continue;
> logger.info("Removing SSTables from failed streaming session. Found {} files to cleanup.",
Integer.valueOf(lockfiles.length));
> }



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message