mirror of https://github.com/apache/druid.git
Log exceptions thrown before persist() for indexing tasks (#5374)
* Log exceptions thrown before persist() for indexing tasks * PR comment
This commit is contained in:
parent
49a6b0b8a6
commit
b234a119ac
|
@ -796,6 +796,10 @@ public class KafkaIndexTask extends AbstractTask implements ChatHandler
|
|||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
log.error(e, "Encountered exception in run() before persisting.");
|
||||
throw e;
|
||||
}
|
||||
finally {
|
||||
log.info("Persisting all pending data");
|
||||
driver.persist(committerSupplier.get()); // persist pending data
|
||||
|
@ -1155,6 +1159,10 @@ public class KafkaIndexTask extends AbstractTask implements ChatHandler
|
|||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
log.error(e, "Encountered exception in runLegacy() before persisting.");
|
||||
throw e;
|
||||
}
|
||||
finally {
|
||||
driver.persist(committerSupplier.get()); // persist pending data
|
||||
}
|
||||
|
|
|
@ -735,6 +735,10 @@ public class IndexTask extends AbstractTask
|
|||
}
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
log.error(e, "Encountered exception in generateAndPublishSegments() before persisting.");
|
||||
throw e;
|
||||
}
|
||||
finally {
|
||||
driver.persist(committerSupplier.get());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue