diff --git a/0014-override-toString.patch b/0014-override-toString.patch new file mode 100644 index 0000000000000000000000000000000000000000..2a6005dbb405b3bcffa72bbea2464e2af1a1f0f3 --- /dev/null +++ b/0014-override-toString.patch @@ -0,0 +1,16 @@ +diff --git a/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerConfig.java b/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerConfig.java +index 58a9ce3d5a..daa5a0bf70 100644 +--- a/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerConfig.java ++++ b/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerConfig.java +@@ -521,6 +521,11 @@ public class WorkerConfig extends AbstractConfig { + } + } + } ++ ++ @Override ++ public String toString() { ++ return "List of comma-separated URIs, ex: http://localhost:8080,https://localhost:8443."; ++ } + } + + private static class ResponseHttpHeadersValidator implements ConfigDef.Validator { diff --git a/kafka.spec b/kafka.spec index af977fa01505a48e0908bc3328baa9b078a63f3e..4a78e60762b8821888ce4d1a7d57a734ec3c34af 100644 --- a/kafka.spec +++ b/kafka.spec @@ -4,7 +4,7 @@ Name: kafka Version: 2.8.2 -Release: 13 +Release: 14 Summary: A Distributed Streaming Platform. License: Apache-2.0 @@ -25,6 +25,7 @@ Patch9: 0010-not-update-connection.patch Patch10: 0011-ConfigEntry.patch Patch11: 0012-incorrectly-LeaderElectionCommand.patch Patch12: 0013-AlterIsr.patch +Patch13: 0014-override-toString.patch BuildRequires: systemd java-1.8.0-openjdk-devel Provides: kafka = %{version} @@ -76,6 +77,8 @@ cp -pr licenses/* $RPM_BUILD_ROOT%{kafka_home}/licenses rm -rf %{buildroot} %changelog +* Fri Dec 08 2023 sundapeng - 2.8.2-14 +- override toString method to show correct value in doc * Fri Dec 08 2023 sundapeng - 2.8.2-13 - AlterIsr and LeaderAndIsr race condition * Fri Dec 08 2023 sundapeng - 2.8.2-12