From d027ed50d8ccf29695df12dafe9441b4d0629db4 Mon Sep 17 00:00:00 2001 From: Mike Audi Date: Fri, 27 Oct 2023 11:46:17 -0500 Subject: [PATCH 1/2] fix: iceberg initialization --- src/main/java/com/mytiki/core/iceberg/metadata/App.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/mytiki/core/iceberg/metadata/App.java b/src/main/java/com/mytiki/core/iceberg/metadata/App.java index a2ada15..2ea42a9 100644 --- a/src/main/java/com/mytiki/core/iceberg/metadata/App.java +++ b/src/main/java/com/mytiki/core/iceberg/metadata/App.java @@ -18,10 +18,12 @@ public class App implements RequestHandler { protected static final Logger logger = Initialize.logger(App.class); + private final Iceberg iceberg = Iceberg.load(); public SQSBatchResponse handleRequest(final SQSEvent event, final Context context) { try { - WriteHandler handler = new WriteHandler(Iceberg.load()); + iceberg.initialize(); + WriteHandler handler = new WriteHandler(iceberg); return handler.handleRequest(event, context); } catch (Exception ex) { logger.error(ex, ex.fillInStackTrace()); From 7e8d797a6a4f9ff4084da41c6b2cdddcc12e173a Mon Sep 17 00:00:00 2001 From: GH Action Date: Fri, 27 Oct 2023 16:47:42 +0000 Subject: [PATCH 2/2] version bump --- infra/sar/template.yml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/infra/sar/template.yml b/infra/sar/template.yml index 6e1947e..1971c7c 100644 --- a/infra/sar/template.yml +++ b/infra/sar/template.yml @@ -30,7 +30,7 @@ Metadata: ReadmeUrl: ../../README.md Labels: [ 'iceberg' ] HomePageUrl: https://github.com/tiki/core-iceberg-metadata - SemanticVersion: 0.1.8 + SemanticVersion: 0.1.9 SourceCodeUrl: https://github.com/tiki/core-iceberg-metadata Resources: diff --git a/pom.xml b/pom.xml index ec60913..624109e 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ 4.0.0 com.mytiki core-iceberg-metadata - 0.1.8 + 0.1.9 jar Iceberg Metadata