Uploaded image for project: 'Crunch (Retired)'
  1. Crunch (Retired)
  2. CRUNCH-617

Better exception when Partition Leader not found

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.15.0
    • IO
    • None

    Description

      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

      Attachments

        1. CRUNCH-617.patch
          2 kB
          Micah Whitacre

        Activity

          People

            mkwhitacre Micah Whitacre
            mkwhitacre Micah Whitacre
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: