Both proto/canal/CanalProtocol.pb.go and proto/canal/EntryProtocol.pb.go defined HEARTBEAT. They have the same package name com_alibaba_otter_canal_protocol.
In the github.com/golang/protobuf v1.4.2 this is causing warning:
file EntryProtocol.proto has a package name conflict over com.alibaba.otter.canal.protocol.HEARTBEAT
// google.golang.org/protobuf/reflect/protoregistry/registry.go:31
var ignoreConflict = func(d protoreflect.Descriptor, err error) bool {
log.Printf(""+
"WARNING: %v\n"+
"A future release will panic on registration conflicts. See:\n"+
"https://developers.google.com/protocol-buffers/docs/reference/go/faq#namespace-conflict\n"+
"\n", err)
return true
}
Bug Report
Both
proto/canal/CanalProtocol.pb.go
andproto/canal/EntryProtocol.pb.go
definedHEARTBEAT
. They have the same package namecom_alibaba_otter_canal_protocol
.In the
github.com/golang/protobuf v1.4.2
this is causing warning:file EntryProtocol.proto has a package name conflict over com.alibaba.otter.canal.protocol.HEARTBEAT
ticdc version: master