Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-8067

NullPointerException in KeyCacheSerializer

Agile BoardAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.1.5
    • None
    • None
    • Normal

    Description

      Hi,

      I have this stack trace in the logs of Cassandra server (v2.1)

      ERROR [CompactionExecutor:14] 2014-10-06 23:32:02,098 CassandraDaemon.java:166 - Exception in thread Thread[CompactionExecutor:14,1,main]
      java.lang.NullPointerException: null
              at org.apache.cassandra.service.CacheService$KeyCacheSerializer.serialize(CacheService.java:475) ~[apache-cassandra-2.1.0.jar:2.1.0]
              at org.apache.cassandra.service.CacheService$KeyCacheSerializer.serialize(CacheService.java:463) ~[apache-cassandra-2.1.0.jar:2.1.0]
              at org.apache.cassandra.cache.AutoSavingCache$Writer.saveCache(AutoSavingCache.java:225) ~[apache-cassandra-2.1.0.jar:2.1.0]
              at org.apache.cassandra.db.compaction.CompactionManager$11.run(CompactionManager.java:1061) ~[apache-cassandra-2.1.0.jar:2.1.0]
              at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) ~[na:1.7.0]
              at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) ~[na:1.7.0]
              at java.util.concurrent.FutureTask.run(Unknown Source) ~[na:1.7.0]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0]
              at java.lang.Thread.run(Unknown Source) [na:1.7.0]
      

      It may not be critical because this error occured in the AutoSavingCache. However the line 475 is about the CFMetaData so it may hide bigger issue...

       474             CFMetaData cfm = Schema.instance.getCFMetaData(key.desc.ksname, key.desc.cfname);
       475             cfm.comparator.rowIndexEntrySerializer().serialize(entry, out);
      

      Regards,
      Eric

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            aleksey Aleksey Yeschenko Assign to me
            leleueri Eric Leleu
            Aleksey Yeschenko
            Benedict Elliott Smith
            Votes:
            7 Vote for this issue
            Watchers:
            15 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment