mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-30 20:08:29 +00:00
In case closing the process throws an exception we should be catching it no matter its type. The process may have terminated because of a fatal error in which case closing the process will throw a server error, not an `IOException`. If this happens we fail to mark the persistent task as failed and the task gets in limbo.
This commit is contained in:
parent
3b514f0dae
commit
aef419c0b0
@ -203,7 +203,7 @@ public class AnalyticsProcessManager {
|
||||
try {
|
||||
processContext.process.close();
|
||||
LOGGER.info("[{}] Closed process", configId);
|
||||
} catch (IOException e) {
|
||||
} catch (Exception e) {
|
||||
String errorMsg = new ParameterizedMessage("[{}] Error closing data frame analyzer process [{}]"
|
||||
, configId, e.getMessage()).getFormattedMessage();
|
||||
processContext.setFailureReason(errorMsg);
|
||||
|
Loading…
x
Reference in New Issue
Block a user