Skip to content

Conversation

@avinash-fk
Copy link

@avinash-fk avinash-fk commented May 4, 2023

Fixes #48

Master Issue: #48

Motivation

doCommitOffsets method in Pulsar Kafka Client version 2.11.0 is not working for partitioned topics. This does not allows acking messages.

Modifications

In doCommitOffsets PulsarKafkaConsumer.java creating TopicMessageIdImpl with the correct partition name

Verifying this change

  • Make sure that the change passes the CI checks.

This change is already covered by existing tests, provided we create it as a partitioned topic

Does this pull request potentially affect one of the following parts:

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API: (no)
  • The schema: (no)
  • The default values of configurations: (no)
  • The wire protocol: (no)
  • The rest endpoints: (no)
  • The admin cli options: (no)
  • Anything that affects deployment: (no)

Documentation

  • Does this pull request introduce a new feature? (no)

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution

Can you please add a unit test?

@dlg99 PTAL

Copy link
Contributor

@dlg99 dlg99 left a comment

Choose a reason for hiding this comment

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

LGTM but needs a test that reproes original problem

@avinash-fk
Copy link
Author

@eolivelli @dlg99 added a unit test for commitSync, specifically on how acknowledgeCumulativeAsync is called inside doCommitOffsets. Let me know if there is any thing else required.

@avinash-fk
Copy link
Author

@dlg99, any idea when can this be merged if everything is good? Also, can a patch version be released with this fix ?

@avinash-fk avinash-fk requested review from dlg99 and eolivelli May 16, 2023 12:04
@tisonkun
Copy link
Member

I support to merge this patch. @dlg99 @eolivelli could you give another look?

@tisonkun tisonkun changed the title [Issue#48]: Fixed bug in doCommitOffsets of PulsarKafkaConsumer in version 2.11.0 fix: doCommitOffsets of PulsarKafkaConsumer in version 2.11.0 Oct 12, 2023
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.

Bug in doCommitOffsets of PulsarKafkaConsumer [Ver: 2.11.0]

4 participants