Skip to content

Commit f5fcc41

Browse files
authored
KAFKA-19503: Deprecate MX4j support (#20208)
This feature adds maintenance burden and potential security concerns while providing no apparent value to the Kafka community. See [KIP-1193](https://cwiki.apache.org/confluence/x/dAxJFg) for more details. Reviewers: TengYao Chi <frankvicky@apache.org>, Ken Huang <s7133700@gmail.com> --------- Signed-off-by: Federico Valeri <fedevaleri@gmail.com>
1 parent 5cf6a9d commit f5fcc41

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

core/src/main/scala/kafka/utils/Mx4jLoader.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,14 @@ import javax.management.ObjectName
3030
*
3131
* This is a Scala port of org.apache.cassandra.utils.Mx4jTool written by Ran Tavory for CASSANDRA-1068
3232
* */
33+
@deprecated
3334
object Mx4jLoader extends Logging {
3435

3536
def maybeLoad(): Boolean = {
3637
val props = new VerifiableProperties(System.getProperties)
3738
if (!props.getBoolean("kafka_mx4jenable", default = false))
3839
return false
40+
warn("MX4j is deprecated and will be removed in Kafka 5.0")
3941
val address = props.getString("mx4jaddress", "0.0.0.0")
4042
val port = props.getInt("mx4jport", 8082)
4143
try {

docs/upgrade.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ <h5><a id="upgrade_420_notable" href="#upgrade_420_notable">Notable changes in 4
3434
<li>The <code>KafkaPrincipalBuilder</code> now extends <code>KafkaPrincipalSerde</code>. Force developer to implement <code>KafkaPrincipalSerde</code> interface for custom <code>KafkaPrincipalBuilder</code>.
3535
For further details, please refer to <a href="https://cwiki.apache.org/confluence/x/1gq9F">KIP-1157</a>.
3636
</li>
37+
<li>
38+
The support for MX4J library, enabled through <code>kafka_mx4jenable</code> system property, was deprecated and will be removed in Kafka 5.0.
39+
</li>
3740
</ul>
3841

39-
4042
<h4><a id="upgrade_4_1_0" href="#upgrade_4_1_0">Upgrading to 4.1.0</a></h4>
4143

4244
<h5><a id="upgrade_4_1_0_from" href="#upgrade_4_1_0_from">Upgrading Servers to 4.1.0 from any version 3.3.x through 4.0.x</a></h5>

0 commit comments

Comments
 (0)