Skip to content

auto_commit not working in KafkaEx.stream/2 #145

@gjaldon

Description

@gjaldon

I'm using Kakfa 0.10.0 and have the following code:

for message <- KafkaEx.stream(@topic, partition) do
  process_message(pool, message)
end

The issue is that offsets are not being committed. I tried disabling the auto_commit option and then manually creating a worker and then manually committing the offset after the task but it still doesn't work. I based the offset_commit code on your test for the offset_commit function.

Also, process_message/2 above takes about half a minute to finish. In case, that matters.

What could be causing this problem?

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