You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Anupam (JIRA)" <ji...@apache.org> on 2015/10/14 19:30:05 UTC

[jira] [Assigned] (REEF-831) Make YarnConfigurationUrlProviderTests stable

     [ https://issues.apache.org/jira/browse/REEF-831?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Anupam reassigned REEF-831:
---------------------------

    Assignee: Anupam

> Make YarnConfigurationUrlProviderTests stable
> ---------------------------------------------
>
>                 Key: REEF-831
>                 URL: https://issues.apache.org/jira/browse/REEF-831
>             Project: REEF
>          Issue Type: Bug
>          Components: REEF.NET
>            Reporter: Mariia Mykhailova
>            Assignee: Anupam
>
> {{UrlProviderReadsUpdatedConfigFile}} test is unstable: whenever I run all tests on .NET side of code locally, it fails half of the time.
> {noformat}
> Test Name:	UrlProviderReadsUpdatedConfigFile
> Test FullName:	Org.Apache.REEF.Client.Tests.YarnConfigurationUrlProviderTests.UrlProviderReadsUpdatedConfigFile
> Test Source:	c:\incubator-reef\lang\cs\Org.Apache.REEF.Client.Tests\YarnConfigurationUrlProviderTests.cs : line 133
> Test Outcome:	Failed
> Test Duration:	0:00:00.0263554
> Result Message:	
> Test method Org.Apache.REEF.Client.Tests.YarnConfigurationUrlProviderTests.UrlProviderReadsUpdatedConfigFile threw exception: 
> System.IO.IOException: The process cannot access the file 'C:\Users\mamykhai\AppData\Local\Temp\yarn-site.xml' because it is being used by another process.
> Result StackTrace:	
> at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
>    at System.IO.File.InternalDelete(String path, Boolean checkHost)
>    at Org.Apache.REEF.Client.Tests.YarnConfigurationUrlProviderTests.TempFileWriter.Dispose() in c:\incubator-reef\lang\cs\Org.Apache.REEF.Client.Tests\YarnConfigurationUrlProviderTests.cs:line 233
>    at Org.Apache.REEF.Client.Tests.YarnConfigurationUrlProviderTests.UrlProviderReadsUpdatedConfigFile() in c:\incubator-reef\lang\cs\Org.Apache.REEF.Client.Tests\YarnConfigurationUrlProviderTests.cs:line 158
> {noformat}
> It looks like all tests in {{YarnConfigurationUrlProviderTests}} share the same temporary file, and there is some race condition between them, so this test sometimes can't delete file if another holds on it. If this is the case, using different temp files for different tests in this class should fix it.



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