Max number of tuple replays on Storm Kafka Spout

前端 未结 5 1445
别跟我提以往
别跟我提以往 2021-01-17 17:34

We’re using Storm with the Kafka Spout. When we fail messages, we’d like to replay them, but in some cases bad data or code errors will cause messages to always fail a Bolt,

5条回答
  •  灰色年华
    2021-01-17 18:02

    We also face the similar data where we have bad data coming in causing the bolt to fail infinitely.

    In order to resolve this on runtime, we have introduced one more bolt naming it as "DebugBolt" for reference. So the spout sends the message to this bolt first and then this bolts does the required data fix for the bad messages and then emits them to the required bolt. This way one can fix the data errors on the fly.

    Also, if you need to delete some messages, you can actually pass an ignoreFlag from your DebugBolt to your original Bolt and your original bolt should just send an ack to spout without processing if the ignoreFlag is True.

提交回复
热议问题