RocketMQ integration for Apache Flink. This module includes the RocketMQ source and sink that allows a flink job to either write messages into a topic or read from topics in a flink job.
Describe:
RocketMQ server has some problems in consumer group verification.Source will receive exception when it pulls record from broker. After five retries ,none reocrds would be pulled and job is still in running state.
Analyse:
RocketMQSourceFunction pulls record from RocketMQ in a thread.
When an exception occurs, it can be retried up to five times.Then thread of consumer would finish,but main thread still be blocked by awaitTermination function.So the function of run never ends and subTask can't exit normally.
After server of rocketmq throws multiple exceptions. Even if all threads of rmq-pull had finished ,the job is still in running state.This is a big risk in the production.
Describe: RocketMQ server has some problems in consumer group verification.Source will receive exception when it pulls record from broker. After five retries ,none reocrds would be pulled and job is still in running state. Analyse:
RocketMQSourceFunction
pulls record from RocketMQ in a thread. When an exception occurs, it can be retried up to five times.Then thread of consumer would finish,but main thread still be blocked byawaitTermination
function.So the function ofrun
never ends and subTask can't exit normally.After server of rocketmq throws multiple exceptions. Even if all threads of rmq-pull had finished ,the job is still in running state.This is a big risk in the production.