hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Xuan Gong (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-2749) Some testcases from TestLogAggregationService fails in trunk
Date Mon, 27 Oct 2014 22:18:34 GMT

    [ https://issues.apache.org/jira/browse/YARN-2749?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14185924#comment-14185924
] 

Xuan Gong commented on YARN-2749:
---------------------------------

This is because of race condition and it is the testcase issue. 
This happens when we call AppLogAggregatorImpl.doLogAggregationOutOfBand which will notify
and abort the wait to start to aggregate logs. The notify action might be happen be fore the
AppLogAggregatorImpl thread starts. The simplest fix could be adding some thread.sleep before
we call AppLogAggregatorImpl.doLogAggregationOutOfBand to make sure AppLogAggregatorImpl thread
starts.

> Some testcases from TestLogAggregationService fails in trunk
> ------------------------------------------------------------
>
>                 Key: YARN-2749
>                 URL: https://issues.apache.org/jira/browse/YARN-2749
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Xuan Gong
>            Assignee: Xuan Gong
>
> Some testcases from TestLogAggregationService fails in trunk. 
> Those can be reproduced in centos
> Stack Trace:
> java.lang.AssertionError: null
> 	at org.junit.Assert.fail(Assert.java:86)
> 	at org.junit.Assert.assertTrue(Assert.java:41)
> 	at org.junit.Assert.assertTrue(Assert.java:52)
> 	at org.apache.hadoop.yarn.server.nodemanager.containermanager.logaggregation.TestLogAggregationService.testLogAggregationService(TestLogAggregationService.java:1362)
> 	at org.apache.hadoop.yarn.server.nodemanager.containermanager.logaggregation.TestLogAggregationService.testLogAggregationServiceWithRetention(TestLogAggregationService.java:1290)
> Stack Trace:
> java.lang.AssertionError: null
> 	at org.junit.Assert.fail(Assert.java:86)
> 	at org.junit.Assert.assertTrue(Assert.java:41)
> 	at org.junit.Assert.assertTrue(Assert.java:52)
> 	at org.apache.hadoop.yarn.server.nodemanager.containermanager.logaggregation.TestLogAggregationService.testLogAggregationService(TestLogAggregationService.java:1362)
> 	at org.apache.hadoop.yarn.server.nodemanager.containermanager.logaggregation.TestLogAggregationService.testLogAggregationServiceWithRetention(TestLogAggregationService.java:1290)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message