0

necesito ayuda para detener mi aplicacion cuando por ejemplo se desconecta por 10 min o en su efecto no puede conectarse al servidor.

    2021-08-16 18:39:21.927  WARN 15548 --- [ntainer#0-0-C-1] o.a.k.c.NetworkClient                    : [Consumer clientId=topicTest, groupId=goupTest-] Connection to node 1 (localhost/127.0.0.1:9092) could not be established. Broker may not be available.
    2021-08-16 18:39:24.942  WARN 15548 --- [ntainer#0-0-C-1] o.a.k.c.NetworkClient                    : [Consumer clientId=topicTest, groupId=goupTest] Connection to node 1 (localhost/127.0.0.1:9092) could not be established. Broker may not be available.
    2021-08-16 18:39:24.943  INFO 15548 --- [ntainer#0-0-C-1] o.a.k.c.FetchSessionHandler              : [Consumer clientId=topicTest, groupId=goupTest] Error sending fetch request (sessionId=1591961485, epoch=INITIAL) to node 1:
    
    org.apache.kafka.common.errors.DisconnectException: null

en el caso de que no pueda conectar al iniciar, seria igualmente en un plazo de 10 min.

2021-08-16 18:42:15.960  WARN 23068 --- [ntainer#0-0-C-1] o.a.k.c.NetworkClient                    : [Consumer clientId=topicTest, groupId=goupTest] Connection to node -1 (localhost/127.0.0.1:9092) could not be established. Broker may not be available.
2021-08-16 18:42:15.961  WARN 23068 --- [ntainer#0-0-C-1] o.a.k.c.NetworkClient                    : [Consumer clientId=topicTest, groupId=goupTest] Bootstrap broker localhost:9092 (id: -1 rack: null) disconnected
2021-08-16 18:42:19.125  WARN 23068 --- [ntainer#0-0-C-1] o.a.k.c.NetworkClient                    : [Consumer clientId=topicTest, groupId=goupTest] Connection to node -1 (localhost/127.0.0.1:9092) could not be established. Broker may not be available.
2021-08-16 18:42:19.126  WARN 23068 --- [ntainer#0-0-C-1] o.a.k.c.NetworkClient                    : [Consumer clientId=topicTest, groupId=goupTest] Bootstrap broker localhost:9092 (id: -1 rack: null) disconnected

En mi aplicacion uso ConsumerFactory y ConcurrentKafkaListenerContainerFactory para toda la configuracion del consumidor.

2

0

Tu Respuesta

By clicking “Publica tu respuesta”, you agree to our terms of service and acknowledge you have read our privacy policy.

Examina otras preguntas con la etiqueta o formula tu propia pregunta.