We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 971b390 commit 1f8cd55Copy full SHA for 1f8cd55
src/main/java/com/lowtuna/jsonblob/core/BlobCleanupConsumer.java
@@ -31,6 +31,10 @@ public void run() {
31
log.info("Polling queue for files to process for {}", QUEUE_TIMEOUT);
32
try {
33
File file = filesToProcess.poll(QUEUE_TIMEOUT.getQuantity(), QUEUE_TIMEOUT.getUnit());
34
+ if (file == null) {
35
+ log.info("Timed out after {} while waiting for something to come onto the queue", QUEUE_TIMEOUT);
36
+ return;
37
+ }
38
log.debug("Processing {}", file.getAbsolutePath());
39
String blobId = file.getName().split("\\.", 2)[0];
40
File metadataFile = fileSystemJsonBlobManager.getMetaDataFile(file.getParentFile());
0 commit comments