mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fix proto3 bug
This commit is contained in:
@@ -323,7 +323,7 @@ public class SimpleCanalConnector implements CanalConnector {
|
|||||||
Packet p = Packet.parseFrom(data);
|
Packet p = Packet.parseFrom(data);
|
||||||
switch (p.getType()) {
|
switch (p.getType()) {
|
||||||
case MESSAGES: {
|
case MESSAGES: {
|
||||||
if (!p.getCompression().equals(Compression.NONE)) {
|
if (!p.getCompression().equals(Compression.NONE) && !p.getCompression().equals(Compression.COMPRESSIONCOMPATIBLEPROTO2)) {
|
||||||
throw new CanalClientException("compression is not supported in this connector");
|
throw new CanalClientException("compression is not supported in this connector");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user