Skip to content

Kafka offsets are not commited when Container pollTimeout >> ListenerInvoker recordsPollTimeout #140

@adamdec

Description

@adamdec

Hi,
In reference to #135

Problem for live-lock still exists for version 1.0.1.RELEASE
I have tested it using your test case "testBatchAck" with ContainerProperties:

        containerProps.setSyncCommits(true);
        containerProps.setAckMode(AckMode.BATCH);
        containerProps.setPollTimeout(10000);
        containerProps.setAckOnError(false);

As abbadon123 already suggested the simple fix would be to add:

    catch (WakeupException e) {
        if (!this.autoCommit) {
           processCommits();
        }
        this.unsent = checkPause(this.unsent);                  
    }

Regards

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions