diff --git a/src/main/java/com/depromeet/breadmapbackend/domain/search/OpenSearchLoadProdScheduler.java b/src/main/java/com/depromeet/breadmapbackend/domain/search/OpenSearchLoadProdScheduler.java index 43fc146b..f67e5377 100644 --- a/src/main/java/com/depromeet/breadmapbackend/domain/search/OpenSearchLoadProdScheduler.java +++ b/src/main/java/com/depromeet/breadmapbackend/domain/search/OpenSearchLoadProdScheduler.java @@ -39,8 +39,11 @@ public void loadEntireData() throws IOException { log.info("Job loadEntireData skipped by this instance"); } } catch (InterruptedException e) { + log.error("Job loadEntireData error" + e.getMessage()); + lock.unlock(); Thread.currentThread().interrupt(); } finally { + log.info("Job loadEntireData reached finally"); lock.unlock(); } diff --git a/src/main/java/com/depromeet/breadmapbackend/domain/search/OpenSearchLoadTestScheduler.java b/src/main/java/com/depromeet/breadmapbackend/domain/search/OpenSearchLoadTestScheduler.java index 78c4fb86..6f904506 100644 --- a/src/main/java/com/depromeet/breadmapbackend/domain/search/OpenSearchLoadTestScheduler.java +++ b/src/main/java/com/depromeet/breadmapbackend/domain/search/OpenSearchLoadTestScheduler.java @@ -39,8 +39,11 @@ public void loadEntireData() throws IOException { log.info("Job loadEntireData skipped by this instance"); } } catch (InterruptedException e) { + log.error("Job loadEntireData error" + e.getMessage()); + lock.unlock(); Thread.currentThread().interrupt(); } finally { + log.info("Job loadEntireData reached finally"); lock.unlock(); }