Skip to content

handle_messages sometimes receives nil as argument #47

Description

@crmdias

Hello there! First of all, congratulations on your work with this library and thanks a lot for it. We have been using it at DeepX with quite a degree of success this far, and it has been really helpful.

This issue started happening after 1.4.0, and we believe it to be related to the upgrade to brod 3.0.

Sometimes when Kaffe calls our implementation of handle_messages for batch message processing, it gives nil as argument, which gives us a crash when we try to use the given argument as an enumerator, such as below:

  def handle_messages(messages) do
    for message <- messages do
      message.value
      |> Poison.decode()
      |> process_message(message.topic)
    end
    :ok
  end

Could you clarify whether this is a bug or an intended case of this function?
Thank you very much!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions