Kafkatemplate.send (meldung) versucht, unendliche Zeiten mit "Authentifizierungsfehler" zu verbinden.
Posted: 17 Feb 2025, 10:24
wie man diese unendliche Schleife vermeidet. So fügen Sie in diesem Fall Fehlerbehandlungen hinzu. Wenn eine Anmeldeinformationsfehlübereinstimmung dreimal versucht und aufhören, < /p>
wieder zu verbinden
wieder zu verbinden
Code: Select all
2022-10-19 16:03:32.410 INFO [,,,] 828 --- [ad | producer-2] o.apache.kafka.common.network.Selector : [Producer clientId=producer-2] Failed authentication with (Authentication failed: Invalid username or password)
2022-10-19 16:03:32.412 ERROR [,,,] 828 --- [ad | producer-2] org.apache.kafka.clients.NetworkClient : [Producer clientId=producer-2] Connection to node -2 () failed authentication due to: Authentication failed: Invalid username or password
2022-10-19 16:03:34.417 INFO [,,,] 828 --- [ad | producer-2] o.apache.kafka.common.network.Selector : [Producer clientId=producer-2] Failed authentication with (Authentication failed: Invalid username or password)
2022-10-19 16:03:34.419 ERROR [,,,] 828 --- [ad | producer-2] org.apache.kafka.clients.NetworkClient : [Producer clientId=producer-2] Connection to node -2 () failed authentication due to: Authentication failed: Invalid username or password
2022-10-19 16:03:36.338 INFO [,,,] 828 --- [ad | producer-2] o.apache.kafka.common.network.Selector : [Producer clientId=producer-2] Failed authentication with (Authentication failed: Invalid username or password)
2022-10-19 16:03:36.340 ERROR [,,,] 828 --- [ad | producer-2] org.apache.kafka.clients.NetworkClient : [Producer clientId=producer-2] Connection to node -1 () failed authentication due to: Authentication failed: Invalid username or password