You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Yuki Morishita (JIRA)" <ji...@apache.org> on 2012/10/22 19:10:13 UTC
[jira] [Created] (CASSANDRA-4846) BulkLoader throws NPE at start up
Yuki Morishita created CASSANDRA-4846:
-----------------------------------------
Summary: BulkLoader throws NPE at start up
Key: CASSANDRA-4846
URL: https://issues.apache.org/jira/browse/CASSANDRA-4846
Project: Cassandra
Issue Type: Bug
Affects Versions: 1.2.0 beta 2
Reporter: Yuki Morishita
BulkLoader in trunk throws below exception at start up and exit abnormally.
{code}
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.apache.cassandra.io.sstable.SSTableReader.<init>(SSTableReader.java:87)
at org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:180)
at org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:148)
at org.apache.cassandra.io.sstable.SSTableLoader$1.accept(SSTableLoader.java:96)
at java.io.File.list(File.java:1010)
at org.apache.cassandra.io.sstable.SSTableLoader.openSSTables(SSTableLoader.java:67)
at org.apache.cassandra.io.sstable.SSTableLoader.stream(SSTableLoader.java:117)
at org.apache.cassandra.tools.BulkLoader.main(BulkLoader.java:63)
Caused by: java.lang.NullPointerException
at org.apache.cassandra.service.CacheService.initRowCache(CacheService.java:154)
at org.apache.cassandra.service.CacheService.<init>(CacheService.java:102)
at org.apache.cassandra.service.CacheService.<clinit>(CacheService.java:83)
... 8 more
{code}
This comes from CASSANDRA-4732, which moved keyCache in SSTableReader initialization at instance creation. This causes access to CacheService that did not happen for v1.1 and ends up NPE because BulkLoader does not load cassandra.yaml.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CASSANDRA-4846) BulkLoader throws NPE at start
up
Posted by "Yuki Morishita (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4846?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13482374#comment-13482374 ]
Yuki Morishita commented on CASSANDRA-4846:
-------------------------------------------
yeah, let's (almost) revert CASSANDRA-4732 with this patch until we find more cleaner way to use SSTR without caches.
> BulkLoader throws NPE at start up
> ---------------------------------
>
> Key: CASSANDRA-4846
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4846
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 1.2.0 beta 2
> Reporter: Yuki Morishita
> Assignee: Jonathan Ellis
> Labels: bulkloader
> Fix For: 1.2.0 beta 2
>
> Attachments: 4846.txt
>
>
> BulkLoader in trunk throws below exception at start up and exit abnormally.
> {code}
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at org.apache.cassandra.io.sstable.SSTableReader.<init>(SSTableReader.java:87)
> at org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:180)
> at org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:148)
> at org.apache.cassandra.io.sstable.SSTableLoader$1.accept(SSTableLoader.java:96)
> at java.io.File.list(File.java:1010)
> at org.apache.cassandra.io.sstable.SSTableLoader.openSSTables(SSTableLoader.java:67)
> at org.apache.cassandra.io.sstable.SSTableLoader.stream(SSTableLoader.java:117)
> at org.apache.cassandra.tools.BulkLoader.main(BulkLoader.java:63)
> Caused by: java.lang.NullPointerException
> at org.apache.cassandra.service.CacheService.initRowCache(CacheService.java:154)
> at org.apache.cassandra.service.CacheService.<init>(CacheService.java:102)
> at org.apache.cassandra.service.CacheService.<clinit>(CacheService.java:83)
> ... 8 more
> {code}
> This comes from CASSANDRA-4732, which moved keyCache in SSTableReader initialization at instance creation. This causes access to CacheService that did not happen for v1.1 and ends up NPE because BulkLoader does not load cassandra.yaml.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CASSANDRA-4846) BulkLoader throws NPE at start up
Posted by "Jonathan Ellis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CASSANDRA-4846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jonathan Ellis updated CASSANDRA-4846:
--------------------------------------
Attachment: 4846.txt
fix attached
> BulkLoader throws NPE at start up
> ---------------------------------
>
> Key: CASSANDRA-4846
> URL: https://issues.apache.org/jira/browse/CASSANDRA-4846
> Project: Cassandra
> Issue Type: Bug
> Affects Versions: 1.2.0 beta 2
> Reporter: Yuki Morishita
> Labels: bulkloader
> Fix For: 1.2.0 beta 2
>
> Attachments: 4846.txt
>
>
> BulkLoader in trunk throws below exception at start up and exit abnormally.
> {code}
> Exception in thread "main" java.lang.ExceptionInInitializerError
> at org.apache.cassandra.io.sstable.SSTableReader.<init>(SSTableReader.java:87)
> at org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:180)
> at org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:148)
> at org.apache.cassandra.io.sstable.SSTableLoader$1.accept(SSTableLoader.java:96)
> at java.io.File.list(File.java:1010)
> at org.apache.cassandra.io.sstable.SSTableLoader.openSSTables(SSTableLoader.java:67)
> at org.apache.cassandra.io.sstable.SSTableLoader.stream(SSTableLoader.java:117)
> at org.apache.cassandra.tools.BulkLoader.main(BulkLoader.java:63)
> Caused by: java.lang.NullPointerException
> at org.apache.cassandra.service.CacheService.initRowCache(CacheService.java:154)
> at org.apache.cassandra.service.CacheService.<init>(CacheService.java:102)
> at org.apache.cassandra.service.CacheService.<clinit>(CacheService.java:83)
> ... 8 more
> {code}
> This comes from CASSANDRA-4732, which moved keyCache in SSTableReader initialization at instance creation. This causes access to CacheService that did not happen for v1.1 and ends up NPE because BulkLoader does not load cassandra.yaml.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira