You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/03/21 18:06:00 UTC

[jira] [Commented] (KAFKA-8142) Kafka Streams fails with NPE if records contains null-value in header

    [ https://issues.apache.org/jira/browse/KAFKA-8142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16798309#comment-16798309 ] 

ASF GitHub Bot commented on KAFKA-8142:
---------------------------------------

mjsax commented on pull request #6484: KAFKA-8142: Fix NPE for nulls in Headers
URL: https://github.com/apache/kafka/pull/6484
 
 
   *More detailed description of your change,
   if necessary. The PR title and PR message become
   the squashed commit message, so use a separate
   comment to ping reviewers.*
   
   *Summary of testing strategy (including rationale)
   for the feature or bug fix. Unit and/or integration
   tests are expected for any behaviour change and
   system tests should be considered for larger changes.*
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> Kafka Streams fails with NPE if records contains null-value in header
> ---------------------------------------------------------------------
>
>                 Key: KAFKA-8142
>                 URL: https://issues.apache.org/jira/browse/KAFKA-8142
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>    Affects Versions: 2.1.1
>            Reporter: Matthias J. Sax
>            Assignee: Matthias J. Sax
>            Priority: Major
>
> [2019-03-14 13:14:49,756] ERROR stream-thread [<mask-app-id>-2-1-1f30b4e6-1204-4aa7-9426-a395ab06ad64-StreamThread-2] Failed to process stream task 9_2 due to the following error: (org.apache.kafka.str
> eams.processor.internals.AssignedStreamsTasks)
> java.lang.NullPointerException
>         at org.apache.kafka.streams.processor.internals.ProcessorRecordContext.sizeBytes(ProcessorRecordContext.java:93)
>         at org.apache.kafka.streams.state.internals.ContextualRecord.sizeBytes(ContextualRecord.java:42)
>         at org.apache.kafka.streams.state.internals.LRUCacheEntry.<init>(LRUCacheEntry.java:53)
>         at org.apache.kafka.streams.state.internals.CachingWindowStore.put(CachingWindowStore.java:160)
>         at org.apache.kafka.streams.state.internals.CachingWindowStore.put(CachingWindowStore.java:36)
>         at org.apache.kafka.streams.state.internals.MeteredWindowStore.put(MeteredWindowStore.java:114)
>         at org.apache.kafka.streams.kstream.internals.KStreamWindowAggregate$KStreamWindowAggregateProcessor.process(KStreamWindowAggregate.java:124)
>         at org.apache.kafka.streams.processor.internals.ProcessorNode.process(ProcessorNode.java:117)
>         at org.apache.kafka.streams.processor.internals.ProcessorContextImpl.forward(ProcessorContextImpl.java:146)
>         at org.apache.kafka.streams.processor.internals.ProcessorContextImpl.forward(ProcessorContextImpl.java:129)
>         at org.apache.kafka.streams.processor.internals.ProcessorContextImpl.forward(ProcessorContextImpl.java:93)
>         at org.apache.kafka.streams.processor.internals.SourceNode.process(SourceNode.java:84)
>         at org.apache.kafka.streams.processor.internals.StreamTask.process(StreamTask.java:351)
>         at org.apache.kafka.streams.processor.internals.AssignedStreamsTasks.process(AssignedStreamsTasks.java:104)
>         at org.apache.kafka.streams.processor.internals.TaskManager.process(TaskManager.java:413)
>         at org.apache.kafka.streams.processor.internals.StreamThread.runOnce(StreamThread.java:862)
>         at org.apache.kafka.streams.processor.internals.StreamThread.runLoop(StreamThread.java:777)
>         at org.apache.kafka.streams.processor.internals.StreamThread.run(StreamThread.java:747)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)