Skip to content
Merged
Show file tree
Hide file tree
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 @@ -128,6 +128,9 @@ public void stop() throws InterruptedException {
.shutdown()
.awaitTermination(30, TimeUnit.SECONDS);
}
if (serviceImpl != null) {
serviceImpl.postShutdown();
}
Comment thread
THausherr marked this conversation as resolved.
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -483,9 +483,26 @@ public void shutdown() {
LOG.info("Shutting down embedded Ignite server");
try {
igniteStoreServer.close();
igniteStoreServer = null;
} catch (Exception e) {
LOG.error("Error shutting down Ignite server", e);
} finally {
igniteStoreServer = null;
}
}
}

/**
* Close the pipe client, to be called after TikaGrpcServer has shut down.
*/
void postShutdown() {
if (pipesClient != null) {
LOG.info("Shutting down the pipes client");
try {
pipesClient.close();
} catch (IOException e) {
LOG.error("Error closing the pipes client", e);
} finally {
pipesClient = null;
}
}
Comment thread
THausherr marked this conversation as resolved.
}
Expand Down
Loading