Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复 enum HEARTBEAT 重复定义 #35

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Cotch22
Copy link

@Cotch22 Cotch22 commented Dec 18, 2023

在新版本 protobuf 中会检查重复定义,以至于报错

Fatal error: Unable to load descriptor: duplicate symbol 'com.alibaba.otter.canal.protocol.HEARTBEAT'

使用 protoc 生成时也会报错

EntryProtocol.proto:197:9: "com.alibaba.otter.canal.protocol.HEARTBEAT" is already defined in file "CanalProtocol.proto".
EntryProtocol.proto:197:9: Note that enum values use C++ scoping rules, meaning that enum values are siblings of their type, not children of it.  Therefore, "HEARTBEAT" must be unique within "com.alibaba.otter.canal.protocol", not just within "EntryType".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant