You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by "Chris Riccomini (JIRA)" <ji...@apache.org> on 2013/11/08 23:46:17 UTC

[jira] [Created] (SAMZA-80) KV cache store fails with NPE

Chris Riccomini created SAMZA-80:
------------------------------------

             Summary: KV cache store fails with NPE
                 Key: SAMZA-80
                 URL: https://issues.apache.org/jira/browse/SAMZA-80
             Project: Samza
          Issue Type: Bug
          Components: kv
    Affects Versions: 0.6.0
            Reporter: Chris Riccomini
             Fix For: 0.7.0


I came across a situation in which a StreamTask with a store will trigger an NPE in the caching class.

{noformat}
java.lang.NullPointerException
  at org.apache.samza.storage.kv.CachedStore$$anonfun$flush$2.apply(CachedStore.scala:144)
  at org.apache.samza.storage.kv.CachedStore$$anonfun$flush$2.apply(CachedStore.scala:142)
  at scala.collection.mutable.LinkedListLike$class.foreach(LinkedListLike.scala:111)
  at scala.collection.mutable.DoubleLinkedList.foreach(DoubleLinkedList.scala:41)
  at org.apache.samza.storage.kv.CachedStore.flush(CachedStore.scala:142)
  at org.apache.samza.storage.kv.CachedStore$$anon$1.removeEldestEntry(CachedStore.scala:65)
  at java.util.LinkedHashMap.addEntry(LinkedHashMap.java:410)
  at java.util.HashMap.put(HashMap.java:385)
  at org.apache.samza.storage.kv.CachedStore.get(CachedStore.scala:83)
  at org.apache.samza.storage.kv.KeyValueStorageEngine.get(KeyValueStorageEngine.scala:48)
  at com.linkedin.samza.example.StatefulTask.process(StatefulTask.java:51)
  at org.apache.samza.container.TaskInstance.process(TaskInstance.scala:168)
  at org.apache.samza.container.SamzaContainer.process(SamzaContainer.scala:563)
  at org.apache.samza.container.SamzaContainer.run(SamzaContainer.scala:455)
  at org.apache.samza.job.local.ThreadJob$$anon$1.run(ThreadJob.scala:42)
{noformat}



--
This message was sent by Atlassian JIRA
(v6.1#6144)