Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KAFKA-15602: revert KAFKA-4852 #14617

Merged
merged 4 commits into from Oct 30, 2023
Merged

KAFKA-15602: revert KAFKA-4852 #14617

merged 4 commits into from Oct 30, 2023

Conversation

mjsax
Copy link
Member

@mjsax mjsax commented Oct 23, 2023

This PR reverts

Also added some JavaDocs to ByteBufferSerializer to explain the contract.

* serializer.serialize(topic, buffer); // Serialize buffer
* </pre>
* </blockquote>
* {@code ByteBufferSerializer} always rewinds to zero for serialization.
Copy link
Collaborator

Choose a reason for hiding this comment

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

"rewinds the position to zero"

Should we also explicitly mention rewind() is used?

…teBufferSerializer.java

Co-authored-by: Philip Nee <pnee@confluent.io>
Copy link
Collaborator

@philipnee philipnee left a comment

Choose a reason for hiding this comment

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

Do you think we need to cover the test case for:
ByteBuffer.allocate(8).put("test".getBytes(UTF_8))
and
ByteBuffer.allocate(8).put("test".getBytes(UTF_8)).flip()

@mjsax
Copy link
Member Author

mjsax commented Oct 26, 2023

I would focusing on reverting -- if we want to update tests, we can do it in a separate PR?

@mjsax
Copy link
Member Author

mjsax commented Oct 26, 2023

@showuon Considering this for 3.5.2 bug-fix release. (Given that we wait for RocksDB testing to complete -- we are on it -- we could squeeze this one in, too?).

Also \cc @guozhangwang who merge the original PR.

@philipnee
Copy link
Collaborator

Hi @mjsax - I think so too.

@guozhangwang
Copy link
Contributor

Thanks @mjsax I read the JIRA description and all discussions and I agree we can revert the changes asap before we have a thorough KIP discussion on what should be the right semantics (and for that semantics I agree with your comment that is the only one that makes sense in the JIRA as well, btw).

@mjsax mjsax merged commit 4d04711 into apache:trunk Oct 30, 2023
1 check failed
@mjsax mjsax deleted the k4852-revert branch October 30, 2023 20:16
mjsax added a commit that referenced this pull request Oct 30, 2023
This PR reverts
 - 51dbd17
 - 496ae05

Reviewers:  Philip Nee <pnee@confluent.io>, Guozhang Wang <guozhang@confluent.io>
mjsax added a commit that referenced this pull request Oct 30, 2023
This PR reverts
 - 51dbd17
 - 496ae05

Reviewers:  Philip Nee <pnee@confluent.io>, Guozhang Wang <guozhang@confluent.io>
mjsax added a commit that referenced this pull request Oct 30, 2023
This PR reverts
 - 51dbd17
 - 496ae05

Reviewers:  Philip Nee <pnee@confluent.io>, Guozhang Wang <guozhang@confluent.io>
@mjsax
Copy link
Member Author

mjsax commented Nov 2, 2023

Merged to trunk and cherry-picked to 3.6, 3.5, and 3.4 branches.

mjsax added a commit to confluentinc/kafka that referenced this pull request Nov 22, 2023
This PR reverts
 - apache@51dbd17
 - apache@496ae05

Reviewers:  Philip Nee <pnee@confluent.io>, Guozhang Wang <guozhang@confluent.io>
anurag-harness pushed a commit to anurag-harness/kafka that referenced this pull request Feb 9, 2024
This PR reverts
 - apache@51dbd17
 - apache@496ae05

Reviewers:  Philip Nee <pnee@confluent.io>, Guozhang Wang <guozhang@confluent.io>
anurag-harness added a commit to anurag-harness/kafka that referenced this pull request Feb 9, 2024
This PR reverts
 - apache@51dbd17
 - apache@496ae05

Reviewers:  Philip Nee <pnee@confluent.io>, Guozhang Wang <guozhang@confluent.io>

Co-authored-by: Matthias J. Sax <matthias@confluent.io>
yyu1993 pushed a commit to yyu1993/kafka that referenced this pull request Feb 15, 2024
This PR reverts
 - apache@51dbd17
 - apache@496ae05

Reviewers:  Philip Nee <pnee@confluent.io>, Guozhang Wang <guozhang@confluent.io>
tinaselenge pushed a commit to tinaselenge/kafka that referenced this pull request Mar 13, 2024
This PR reverts
 - apache@51dbd17
 - apache@496ae05

Reviewers:  Philip Nee <pnee@confluent.io>, Guozhang Wang <guozhang@confluent.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants