cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yuki Morishita (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-7015) sstableloader NPE
Date Fri, 11 Apr 2014 19:24:22 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-7015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13967002#comment-13967002
] 

Yuki Morishita commented on CASSANDRA-7015:
-------------------------------------------

I'm also getting NPE when using sstableloader.
My exception is:

{code}
Exception in thread "main" java.lang.ExceptionInInitializerError
        at org.apache.cassandra.io.util.PoolingSegmentedFile.getSegment(PoolingSegmentedFile.java:36)
        at org.apache.cassandra.io.util.SegmentedFile$SegmentIterator.next(SegmentedFile.java:162)
        at org.apache.cassandra.io.util.SegmentedFile$SegmentIterator.next(SegmentedFile.java:143)
        at org.apache.cassandra.io.sstable.SSTableReader.getPosition(SSTableReader.java:1355)
        at org.apache.cassandra.io.sstable.SSTableReader.getPosition(SSTableReader.java:1287)
        at org.apache.cassandra.io.sstable.SSTableReader.getPositionsForRanges(SSTableReader.java:1200)
        at org.apache.cassandra.io.sstable.SSTableLoader$1.accept(SSTableLoader.java:123)
        at java.io.File.list(File.java:1155)
        at org.apache.cassandra.io.sstable.SSTableLoader.openSSTables(SSTableLoader.java:74)
        at org.apache.cassandra.io.sstable.SSTableLoader.stream(SSTableLoader.java:156)
        at org.apache.cassandra.tools.BulkLoader.main(BulkLoader.java:84)
Caused by: java.lang.NullPointerException
        at org.apache.cassandra.config.DatabaseDescriptor.getFileCacheSizeInMB(DatabaseDescriptor.java:1346)
        at org.apache.cassandra.service.FileCacheService.<clinit>(FileCacheService.java:39)
        ... 11 more
{code}

I think this comes from the change in CASSANDRA-6912, which let Index.db(ifile) use PooledSegmentedFile
instead of BufferedSegementFile because sstableloader does not load cassandra.yaml and index_access_mode
is always null.
(https://github.com/apache/cassandra/commit/5ebadc11e36749e6479f9aba19406db3aacdaf41#diff-24a44f83dd1458c0959d90752a16bab5L278)

> sstableloader NPE
> -----------------
>
>                 Key: CASSANDRA-7015
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7015
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Ryan McGuire
>            Assignee: Benedict
>
> The basic snapshot dtest is failing:
> {code}
> PRINT_DEBUG=true nosetests2 -x -s -v snapshot_test.py:TestSnapshot
> {code}
> This is due to this error from sstableloader:
> {code}
> Opening sstables and calculating sections to stream
> null
> java.lang.NullPointerException
> 	at org.apache.cassandra.io.sstable.SSTableReader.getFilename(SSTableReader.java:627)
> 	at org.apache.cassandra.io.sstable.SSTable.toString(SSTable.java:243)
> 	at org.apache.cassandra.io.sstable.SSTableReader.loadSummary(SSTableReader.java:802)
> 	at org.apache.cassandra.io.sstable.SSTableReader.openForBatch(SSTableReader.java:343)
> 	at org.apache.cassandra.io.sstable.SSTableLoader$1.accept(SSTableLoader.java:113)
> 	at java.io.File.list(File.java:1155)
> 	at org.apache.cassandra.io.sstable.SSTableLoader.openSSTables(SSTableLoader.java:74)
> 	at org.apache.cassandra.io.sstable.SSTableLoader.stream(SSTableLoader.java:156)
> 	at org.apache.cassandra.tools.BulkLoader.main(BulkLoader.java:84)
> FAIL
> {code}
> This was working as of CASSANDRA-6965 being fixed, but it's broken again. I think it's
due to the changes in 5ebadc11e36749e, so I'm assigning to you Bendedict.



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

Mime
View raw message