venice icon indicating copy to clipboard operation
venice copied to clipboard

[all] Changed Kafka from LI's 2.4.1.65 to Apache's 2.4.1

Open FelixGV opened this issue 1 year ago • 6 comments

Several code changes to make it work.

Introduced a new PubSubSecurityProtocol to replace all usage of Kafka's SecurityProtocol enum, since that one has a different package name between the Apache and LinkedIn forks of Kafka.

AK uses: org.apache.kafka.common.security.auth.SecurityProtocol While LI uses: org.apache.kafka.common.protocol.SecurityProtocol

TODO: Decide what to do about the producer flush API not having support for passing a time out in Apache Kafka.

This is a step in the direction of solving #998.

How was this PR tested?

GHCI... (needs more testing though...)

Does this PR introduce any user-facing changes?

  • [x] No. You can skip the rest of this section.
  • [ ] Yes. Make sure to explain your proposed changes and call out the behavior change.

FelixGV avatar May 22 '24 15:05 FelixGV

I think PubSubSecurityProtocol is missing from the commit

Duh 😅 ... I pushed it up now... let's see if it works 💥 🤞

FelixGV avatar May 22 '24 17:05 FelixGV

Closing temporarily. Will put up a separate PR to refactor the VeniceWriter's close routine, so that it stops relying on the flush with timeout API. Then I'll rebase the current PR on top of that other change.

FelixGV avatar Jun 04 '24 02:06 FelixGV

Re-opened this PR, and rebased it on top of #1014, to solve the usage of the flush with timeout API, which does not exist in Apache Kafka. This should be good to go, I think...

FelixGV avatar Jun 07 '24 17:06 FelixGV

Hey @FelixGV , do you have time to rebase from main and get your PR merged? 🚀

adamxchen avatar Aug 08 '24 21:08 adamxchen

Hey @FelixGV , do you have time to rebase from main and get your PR merged? 🚀

Sorry, I missed your comment. The reason this PR is on hold is that we need to make some changes to our proprietary wrappers (MPs) in order to be able to pull in this change safely... @sushantmane got started and found some issues, and I'm planning to continue that work, but I haven't had a chance yet. Hoping to get to it soon.

But in the meantime, it means this PR is blocked...

FelixGV avatar Aug 16 '24 12:08 FelixGV

I will close this one temporarily to jump on something else, but I do plan to get back to it soon-ish.

FelixGV avatar Aug 29 '24 17:08 FelixGV

Awesome, thanks @sushantmane !

FelixGV avatar Nov 04 '24 18:11 FelixGV