alibaba / ilogtail

Fast and Lightweight Observability Data Collector
https://ilogtail.gitbook.io/ilogtail-docs
Apache License 2.0
1.74k stars 387 forks source link

fix crash if input_canal fallback to binlog-file mode #1691

Closed yyuuttaaoo closed 2 months ago

yyuuttaaoo commented 2 months ago

修复OnPosSynced函数中,打印debug日志时没有检查gtid是否为nil就调用了String导致的崩溃。 增加e2e测试,防止问题再次出现。