mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed issue #5029 , add deserializer message
This commit is contained in:
@@ -224,7 +224,7 @@ public class AdapterProcessor {
|
||||
logger.error("finish turn off switch of destination:" + canalDestination);
|
||||
} else {
|
||||
canalMsgConsumer.ack();
|
||||
logger.error(e.getMessage() + " Error sync but ACK!");
|
||||
logger.error(e.getMessage() + " Error sync but ACK!", e);
|
||||
}
|
||||
}
|
||||
Thread.sleep(500);
|
||||
|
||||
@@ -51,7 +51,7 @@ public class CanalMessageDeserializer {
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw new CanalClientException("deserializer failed", e);
|
||||
throw new CanalClientException("deserializer failed by " + e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ public class CanalMessageSerializerUtil {
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException("Error when serializing message to byte[] ");
|
||||
throw new RuntimeException("Error when serializing message to byte[] by " + e.getMessage() , e);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -125,7 +125,7 @@ public class CanalMessageSerializerUtil {
|
||||
}
|
||||
}
|
||||
} catch (Exception e) {
|
||||
throw new CanalClientException("deserializer failed", e);
|
||||
throw new CanalClientException("deserializer failed by " + e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user