crunch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Micah Whitacre (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CRUNCH-617) Better exception when Partition Leader not found
Date Tue, 06 Sep 2016 20:57:20 GMT

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

Micah Whitacre updated CRUNCH-617:
----------------------------------
    Attachment: CRUNCH-617.patch

Patch showing the defensive check.

> Better exception when Partition Leader not found
> ------------------------------------------------
>
>                 Key: CRUNCH-617
>                 URL: https://issues.apache.org/jira/browse/CRUNCH-617
>             Project: Crunch
>          Issue Type: Improvement
>          Components: IO
>            Reporter: Micah Whitacre
>            Assignee: Micah Whitacre
>         Attachments: CRUNCH-617.patch
>
>
> We can get a NPE on this line[1] when the BrokerEndpoint response is null.
> Easiest solution is to defensively detect this and then throw an exception clearly stating
the issue.
> [1] - https://github.com/apache/crunch/blob/f1d074c2a7dcaf44b03dab5b84e9d323f586fdac/crunch-kafka/src/main/java/org/apache/crunch/kafka/KafkaUtils.java#L193



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message