Skip to content

Conversation

@garyrussell
Copy link
Contributor

Resolves #2214

Regression; manual nack with zero sleep went into a tight loop since
2.8.4.

Add a copy of the current test, with a zero sleep; also verify that
nacking the first and last records work.

cherry-pick to 2.9.x, 2.8.x

Resolves spring-projects#2214

Regression; manual nack with zero sleep went into a tight loop since
2.8.4.

Add a copy of the current test, with a zero sleep; also verify that
nacking the first and last records work.

**cherry-pick to 2.9.x, 2.8.x**
factory.setConsumerFactory(consumerFactory());
factory.getContainerProperties().setAckMode(AckMode.MANUAL);
factory.getContainerProperties().setMissingTopicsFatal(false);
factory.setRecordInterceptor(new RecordInterceptor() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we really need this interceptor to be copied in this test scope?
I had a pain back-porting it yesterday for other test class: some API changes in Kafka client.

Thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No; just a copy/paste artifact; will remove.

@artembilan artembilan merged commit 10905dc into spring-projects:main Apr 6, 2022
@artembilan
Copy link
Member

... and cherry-picked to 2.9.x & 2.8.x

@garyrussell garyrussell deleted the GH-2214 branch April 6, 2022 19:27
@sta-szek
Copy link

sta-szek commented Apr 7, 2022

hi, i left question there: #2214 (comment) but i feel this is better place to ask

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Negative acknowledgment not working anymore when value is set to 0

3 participants