diff --git a/pom.xml b/pom.xml
index dd55ed4..4e1f451 100644
--- a/pom.xml
+++ b/pom.xml
@@ -62,6 +62,7 @@
1.12.220
hadoop3-2.2.1
2.12.0
+ 1.1.8.4
7.3.0
@@ -249,6 +250,12 @@
${slf4j.version}
+
+ org.xerial.snappy
+ snappy-java
+ ${snappy.java.version}
+
+
org.apache.hudi
@@ -428,6 +435,11 @@
slf4j-simple
+
+ org.xerial.snappy
+ snappy-java
+
+
org.apache.logging.log4j
log4j-slf4j-impl
diff --git a/src/main/java/org/apache/pulsar/ecosystem/io/lakehouse/sink/SinkWriter.java b/src/main/java/org/apache/pulsar/ecosystem/io/lakehouse/sink/SinkWriter.java
index 2b1bc39..1751d69 100644
--- a/src/main/java/org/apache/pulsar/ecosystem/io/lakehouse/sink/SinkWriter.java
+++ b/src/main/java/org/apache/pulsar/ecosystem/io/lakehouse/sink/SinkWriter.java
@@ -113,8 +113,8 @@ public void run() {
recordsCnt++;
commitIfNeed();
}
- } catch (Exception e) {
- log.error("process record failed. ", e);
+ } catch (Throwable throwable) {
+ log.error("process record failed. ", throwable);
// fail the sink connector.
running = false;
}