在位点出现问题的时候,清空位点缓存,这样只要修正配置文件就可以获取最新,而不需要重启canal #4577
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
背景:
使用非gtid 的模式,当位点出现配置错误或者其他原因导致的位点错误(主从切换等),修正配置文件后需要重启canal才能生效
目标
当出现以上问题,系统可以自动清理缓存,获取最新的配置文件信息
方案
系统在监听到dum 位点错误的时候,清理位点缓存,下一次自动去获取最新的配置文件