Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5FB6C176E7 for ; Wed, 4 Mar 2015 00:00:14 +0000 (UTC) Received: (qmail 47141 invoked by uid 500); 4 Mar 2015 00:00:14 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 47100 invoked by uid 500); 4 Mar 2015 00:00:14 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 47065 invoked by uid 99); 4 Mar 2015 00:00:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Mar 2015 00:00:14 +0000 Date: Wed, 4 Mar 2015 00:00:13 +0000 (UTC) From: "Benedict (JIRA)" To: commits@cassandra.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CASSANDRA-8067) NullPointerException in KeyCacheSerializer MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-8067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14346035#comment-14346035 ] Benedict commented on CASSANDRA-8067: ------------------------------------- Eh, it's not a burning desire to make better, so I'll leave it thanks. More than enough to do. A brief handwavy outline is that the current abstraction adds complexity by not really separating concerns; the duplication is not a problem of the cost of the work but of the cognitive burden (which is essentially why this happened in the first place). But since it's not a significant pain point, it's not worth agonising over either. > NullPointerException in KeyCacheSerializer > ------------------------------------------ > > Key: CASSANDRA-8067 > URL: https://issues.apache.org/jira/browse/CASSANDRA-8067 > Project: Cassandra > Issue Type: Bug > Components: Core > Reporter: Eric Leleu > Assignee: Aleksey Yeschenko > Fix For: 2.1.4 > > Attachments: 8067.txt > > > Hi, > I have this stack trace in the logs of Cassandra server (v2.1) > {code} > 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] > {code} > 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... > {code} > 474 CFMetaData cfm = Schema.instance.getCFMetaData(key.desc.ksname, key.desc.cfname); > 475 cfm.comparator.rowIndexEntrySerializer().serialize(entry, out); > {code} > Regards, > Eric -- This message was sent by Atlassian JIRA (v6.3.4#6332)