override toString method to show correct value in doc

This commit is contained in:
sundapeng 2023-12-08 06:25:55 +00:00
parent 61fe48ab84
commit a51319836f
2 changed files with 20 additions and 1 deletions

View File

@ -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 {

View File

@ -4,7 +4,7 @@
Name: kafka Name: kafka
Version: 2.8.2 Version: 2.8.2
Release: 13 Release: 14
Summary: A Distributed Streaming Platform. Summary: A Distributed Streaming Platform.
License: Apache-2.0 License: Apache-2.0
@ -25,6 +25,7 @@ Patch9: 0010-not-update-connection.patch
Patch10: 0011-ConfigEntry.patch Patch10: 0011-ConfigEntry.patch
Patch11: 0012-incorrectly-LeaderElectionCommand.patch Patch11: 0012-incorrectly-LeaderElectionCommand.patch
Patch12: 0013-AlterIsr.patch Patch12: 0013-AlterIsr.patch
Patch13: 0014-override-toString.patch
BuildRequires: systemd java-1.8.0-openjdk-devel BuildRequires: systemd java-1.8.0-openjdk-devel
Provides: kafka = %{version} Provides: kafka = %{version}
@ -76,6 +77,8 @@ cp -pr licenses/* $RPM_BUILD_ROOT%{kafka_home}/licenses
rm -rf %{buildroot} rm -rf %{buildroot}
%changelog %changelog
* Fri Dec 08 2023 sundapeng <sundapeng_yewu@cmss.chinamobile.com> - 2.8.2-14
- override toString method to show correct value in doc
* Fri Dec 08 2023 sundapeng <sundapeng_yewu@cmss.chinamobile.com> - 2.8.2-13 * Fri Dec 08 2023 sundapeng <sundapeng_yewu@cmss.chinamobile.com> - 2.8.2-13
- AlterIsr and LeaderAndIsr race condition - AlterIsr and LeaderAndIsr race condition
* Fri Dec 08 2023 sundapeng <sundapeng_yewu@cmss.chinamobile.com> - 2.8.2-12 * Fri Dec 08 2023 sundapeng <sundapeng_yewu@cmss.chinamobile.com> - 2.8.2-12