Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Fill the offset field of PartitionResponse#245

Merged
jiazhai merged 2 commits intostreamnative:masterfrom
BewareMyPower:bewaremypower/fix-send-response
Nov 30, 2020
Merged

Fill the offset field of PartitionResponse#245
jiazhai merged 2 commits intostreamnative:masterfrom
BewareMyPower:bewaremypower/fix-send-response

Conversation

@BewareMyPower
Copy link
Copy Markdown
Collaborator

@BewareMyPower BewareMyPower commented Nov 30, 2020

Fixes #230

Master issue: #241

The offset field is not filled when a PRODUCE request is processed yet. It causes that the offset what Kafka producer get from send()'s callback is always -1, which may cause some problems like #241 mentioned.

This PR fills the offset field and add a unit test to verify if the right offset is set.

@BewareMyPower BewareMyPower self-assigned this Nov 30, 2020
@jiazhai jiazhai merged commit ac78325 into streamnative:master Nov 30, 2020
@BewareMyPower BewareMyPower deleted the bewaremypower/fix-send-response branch December 21, 2020 07:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Producer send callback cannot get metadata

2 participants