Blizzard/node-rdkafka

Question about commit and disconnect after connection is lost

オープン

#27 opened on 2016/08/30

 (6 件のコメント) (0 件のリアクション) (1 人の担当者)JavaScript (385 件のフォーク)batch import
help wantedquestion

Repository metrics

Stars
 (1,979 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

I noticed that when commit is called while connection to kafka is lost, the function never returns or throws any error.

How should I recover from this state?

I could set a timeout and assume the connection is lost if the function does not return within that period and try to establish connection with a different kafka server. However, the disconnect function does not return either when connection is lost. How do I perform the necessary clean up without the disconnect function?

Thanks in advance

コントリビューターガイド