diff --git a/src/main/java/net/snowflake/ingest/streaming/internal/FlushService.java b/src/main/java/net/snowflake/ingest/streaming/internal/FlushService.java index 76e43ff4d..67096d03d 100644 --- a/src/main/java/net/snowflake/ingest/streaming/internal/FlushService.java +++ b/src/main/java/net/snowflake/ingest/streaming/internal/FlushService.java @@ -279,7 +279,7 @@ CompletableFuture flush(boolean isForce) { private void createWorkers() { // Create thread for checking and scheduling flush job ThreadFactory flushThreadFactory = - new ThreadFactoryBuilder().setNameFormat("ingest-flush-thread").build(); + new ThreadFactoryBuilder().setNameFormat("ingest-flush-thread").setDaemon(true).build(); this.flushWorker = Executors.newSingleThreadScheduledExecutor(flushThreadFactory); this.flushWorker.scheduleWithFixedDelay( () -> {