Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -447,13 +447,21 @@ private void normalClose() throws IOException {
if (persistentWriter != null) {
persistQueue.put(PersistentWriter.POISON_PILL);
}
persistentWriterThread.join();
persistentWriterThread.join(30_000);
if (persistentWriterThread.isAlive()) {
LOG.warn("BlobStore PersistentWriter did not terminate within 30s, interrupting");
persistentWriterThread.interrupt();
persistentWriterThread.join(5_000);
}

// shutdown the vacuum
if (blobVacuum != null) {
blobVacuumThread.interrupt();
}
blobVacuumThread.join();
blobVacuumThread.join(30_000);
if (blobVacuumThread.isAlive()) {
LOG.warn("BlobStore BlobVacuum did not terminate within 30s");
}
} catch (final InterruptedException e) {
// Restore the interrupted status
Thread.currentThread().interrupt();
Expand Down Expand Up @@ -523,7 +531,10 @@ private void abnormalPersistentWriterShutdown() {
if (blobVacuum != null) {
blobVacuumThread.interrupt();
}
blobVacuumThread.join();
blobVacuumThread.join(30_000);
if (blobVacuumThread.isAlive()) {
LOG.warn("BlobStore BlobVacuum did not terminate within 30s during abnormal shutdown");
}

} catch (final InterruptedException e) {
// Restore the interrupted status
Expand Down
Loading