jihoonson commented on a change in pull request #10517:
URL: https://github.com/apache/druid/pull/10517#discussion_r509618102
##########
File path:
integration-tests/src/test/java/org/apache/druid/tests/indexer/AbstractIndexerTest.java
##########
@@ -69,6 +73,16 @@ protected Closeable unloader(final String dataSource)
protected void unloadAndKillData(final String dataSource)
{
+ // Get all failed task logs
+ List<TaskResponseObject> allTasks =
indexer.getCompleteTasksForDataSource(dataSource);
+ for (TaskResponseObject task : allTasks) {
+ if (task.getStatus().isFailure()) {
+ LOG.info("------- Found failed task. Start log:");
+ LOG.info(indexer.getTaskLog(task.getId()));
Review comment:
How about showing a certain amount of logs at the end instead of
printing the whole? It will likely kill the Travis job by hitting the max
number of logs per job. You can add a `offset` query parameter when you call
the Overlord API.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]