-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[all] Changed Kafka from LI's 2.4.1.78 to Apache's 2.4.1 (#1287)
This is a second attempt at the change from PR #1000. 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
- Loading branch information
Showing
18 changed files
with
186 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...al/venice-common/src/main/java/com/linkedin/venice/pubsub/api/PubSubSecurityProtocol.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.linkedin.venice.pubsub.api; | ||
|
||
import java.util.Locale; | ||
|
||
|
||
/** | ||
* This enum is equivalent to Kafka's SecurityProtocol enum. | ||
* | ||
* We need this abstraction because Kafka's enum is present in two different namespaces, which are different between | ||
* LinkedIn's fork and the Apache fork. | ||
*/ | ||
public enum PubSubSecurityProtocol { | ||
/** Un-authenticated, non-encrypted channel */ | ||
PLAINTEXT, | ||
/** SSL channel */ | ||
SSL, | ||
/** SASL authenticated, non-encrypted channel */ | ||
SASL_PLAINTEXT, | ||
/** SASL authenticated, SSL channel */ | ||
SASL_SSL; | ||
|
||
public static PubSubSecurityProtocol forName(String name) { | ||
return PubSubSecurityProtocol.valueOf(name.toUpperCase(Locale.ROOT)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.