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 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());