File tree 1 file changed +2
-2
lines changed
spring-kafka/src/main/java/org/springframework/kafka/core
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ public final boolean initialize() {
202
202
try {
203
203
synchronized (this ) {
204
204
this .clusterId = adminClient .describeCluster ().clusterId ().get (this .operationTimeout ,
205
- TimeUnit .MILLISECONDS );
205
+ TimeUnit .SECONDS );
206
206
}
207
207
addOrModifyTopicsIfNeeded (adminClient , newTopics );
208
208
return true ;
@@ -230,7 +230,7 @@ public final boolean initialize() {
230
230
public String clusterId () {
231
231
if (this .clusterId == null ) {
232
232
try (AdminClient client = createAdmin ()) {
233
- this .clusterId = client .describeCluster ().clusterId ().get (this .operationTimeout , TimeUnit .MILLISECONDS );
233
+ this .clusterId = client .describeCluster ().clusterId ().get (this .operationTimeout , TimeUnit .SECONDS );
234
234
}
235
235
catch (Exception ex ) {
236
236
LOGGER .error (ex , "Could not obtaine cluster info" );
You can’t perform that action at this time.
0 commit comments