Skip to content

Under-documented "Manually Assigning All Partitions" #2891

@michaldo

Description

@michaldo

In what version(s) of Spring for Apache Kafka are you seeing this issue?

3.0.12

Describe the bug
Doc says

it can be useful to manually assign the partitions and not use Kafka’s group management (...) You should also set the container’s AckMode to MANUAL to prevent the container from committing offsets for a null consumer group

That is not enough, because DefaultErrorHandler by default has ackAfterHandle == true and commit the offset on exception.
Should I create and Doc PR to mention

+ You should also set the container’s error handler setAckAfterHandle(false) to prevent the container from committing offsets on error

?

To be honest, preventing the container from committing offsets should work automatically when @TopicPartition is detected...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions