Как избежать этой бесконечной петли. Как добавить обработку ошибок в этом случае. Если какое -либо несоответствие полномочий, он должен попробовать 3 раза и прекратить воссоединение < /p>
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
Подробнее здесь: https://stackoverflow.com/questions/741 ... thenticati