Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.2.0 beta 2
    • None
    • Normal

    Description

      BulkLoader in trunk throws below exception at start up and exit abnormally.

      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
      

      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.

      Attachments

        1. 4846.txt
          2 kB
          Jonathan Ellis

        Activity

          jbellis Jonathan Ellis added a comment -

          committed

          jbellis Jonathan Ellis added a comment - committed
          yukim Yuki Morishita added a comment -

          yeah, let's (almost) revert CASSANDRA-4732 with this patch until we find more cleaner way to use SSTR without caches.

          yukim Yuki Morishita added a comment - yeah, let's (almost) revert CASSANDRA-4732 with this patch until we find more cleaner way to use SSTR without caches.
          jbellis Jonathan Ellis added a comment -

          fix attached

          jbellis Jonathan Ellis added a comment - fix attached

          People

            jbellis Jonathan Ellis
            yukim Yuki Morishita
            Jonathan Ellis
            Yuki Morishita
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: