fix proto3 bug

This commit is contained in:
WithLin
2018-09-17 11:11:30 +08:00
parent 88bf2ae64d
commit 9748fceda8
@@ -323,7 +323,7 @@ public class SimpleCanalConnector implements CanalConnector {
Packet p = Packet.parseFrom(data);
switch (p.getType()) {
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");
}