You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flume.apache.org by "Peter Turcsanyi (JIRA)" <ji...@apache.org> on 2019/01/28 11:15:00 UTC

[jira] [Assigned] (FLUME-3314) Flume kafka source/channel throws NPE when migrateOffsets() is called on nonexistent topics

     [ https://issues.apache.org/jira/browse/FLUME-3314?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Turcsanyi reassigned FLUME-3314:
--------------------------------------

    Assignee: Peter Turcsanyi

> Flume kafka source/channel throws NPE when migrateOffsets() is called on nonexistent topics
> -------------------------------------------------------------------------------------------
>
>                 Key: FLUME-3314
>                 URL: https://issues.apache.org/jira/browse/FLUME-3314
>             Project: Flume
>          Issue Type: Bug
>    Affects Versions: 1.8.0
>            Reporter: Peter Turcsanyi
>            Assignee: Peter Turcsanyi
>            Priority: Minor
>
> KafkaConsumer.partitionsFor(topicStr) returns null if the topic does not exist and auto.create.topics.enabled has been set to false on Kafka side.
> This case is not handled in the Flume code which leads to NPE.
> Null check needs to be added and warning message should be logged instead of the exception stacktrace.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@flume.apache.org
For additional commands, e-mail: issues-help@flume.apache.org