diff --git a/astra/src/main/java/com/slack/astra/chunk/ReadOnlyChunkImpl.java b/astra/src/main/java/com/slack/astra/chunk/ReadOnlyChunkImpl.java index b969cb4d64..d91b51dfa1 100644 --- a/astra/src/main/java/com/slack/astra/chunk/ReadOnlyChunkImpl.java +++ b/astra/src/main/java/com/slack/astra/chunk/ReadOnlyChunkImpl.java @@ -437,7 +437,8 @@ private void handleChunkAssignment(CacheSlotMetadata cacheSlotMetadata) { // disregarding any errors setChunkMetadataState(cacheSlotMetadata, Metadata.CacheSlotMetadata.CacheSlotState.FREE); LOG.error("Error handling chunk assignment", e); - // also clean up downloaded files if the chunk could not be assigned as we're marking the as FREE / available + // also clean up downloaded files if the chunk could not be assigned as we're marking the as + // FREE / available if (Files.isDirectory(dataDirectory)) { LOG.info("Cleaning up directory after failed chunk assignment{}", dataDirectory); cleanDirectory();