eventicle / eventiclejs

Event based systems, made easy.
8 stars 4 forks source link

KafkaJS doesn't auto reconnect during a full network failure in AWS #21

Open daviddawson opened 2 years ago

daviddawson commented 2 years ago

Using AWS MKS and K8s/ EKS.

Steps to reproduce:

in AWS VPC delete EKS <->kafka VPC

See the kafkajs reconnection logic occurring.

Restore the VPC.

Wait 5 minutes - it should have reconnected, yet it hasn't. Consumers remain in error

daviddawson commented 2 years ago

Is when the unretriable error codes appear - https://kafka.apache.org/protocol#protocol_error_codes