Skip to content

Commit

Permalink
Update snappy dependency (#445)
Browse files Browse the repository at this point in the history
* add snappy dependency

* change exception to throwable

* follow code style for dependency management

(cherry picked from commit 3cb63a8)
  • Loading branch information
oneebhkhan authored and hangc0276 committed Nov 14, 2023
1 parent 3115a20 commit cc7bc7e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
<aws.sdk.version>1.12.220</aws.sdk.version>
<gcs.version>hadoop3-2.2.1</gcs.version>
<curator.version>2.12.0</curator.version>
<snappy.java.version>1.1.8.4</snappy.java.version>

<!-- test dependencies -->
<testng.version>7.3.0</testng.version>
Expand Down Expand Up @@ -249,6 +250,12 @@
<version>${slf4j.version}</version>
</dependency>

<dependency>
<groupId>org.xerial.snappy</groupId>
<artifactId>snappy-java</artifactId>
<version>${snappy.java.version}</version>
</dependency>

<!-- Hoodie dependencies begin -->
<dependency>
<groupId>org.apache.hudi</groupId>
Expand Down Expand Up @@ -428,6 +435,11 @@
<artifactId>slf4j-simple</artifactId>
</dependency>

<dependency>
<groupId>org.xerial.snappy</groupId>
<artifactId>snappy-java</artifactId>
</dependency>

<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cc7bc7e

Please sign in to comment.