You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Christian Schneider (JIRA)" <ji...@apache.org> on 2009/08/25 10:01:50 UTC

[jira] Created: (CAMEL-1934) Unit test failure in Windows for StreamCache. Temp file is not deleted

Unit test failure in Windows for StreamCache. Temp file is not deleted
----------------------------------------------------------------------

                 Key: CAMEL-1934
                 URL: https://issues.apache.org/activemq/browse/CAMEL-1934
             Project: Apache Camel
          Issue Type: Bug
          Components: camel-jetty
    Affects Versions: 2.0.0
         Environment: Windows Vista 32 Bit, JDK 1.6.0_14 and maven 2.2.0 
            Reporter: Christian Schneider
             Fix For: 2.1.0


The temporary file is not deleted. I think the file is still open in some other stream. The problem is I have no idea how to find this place. Like in issue  	 CAMEL-1924 this only happens on windows as on unix you can delete a file even if there are open streams.

testStreamCacheToFileShouldBeDeletedInCaseOfException
	java.lang.AssertionError: There should be no files expected:<1> but was:<0>
	
org.apache.camel.component.jetty.HttpStreamCacheFileTest:71

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1934) Unit test failure in Windows for StreamCache. Temp file is not deleted

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53810#action_53810 ] 

Willem Jiang commented on CAMEL-1934:
-------------------------------------

@ Christian

Done.
http://svn.apache.org/viewvc?rev=808247&view=rev

> Unit test failure in Windows for StreamCache. Temp file is not deleted
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-1934
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1934
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jetty
>    Affects Versions: 2.0.0
>         Environment: Windows Vista 32 Bit, JDK 1.6.0_14 and maven 2.2.0 
>            Reporter: Christian Schneider
>            Assignee: Willem Jiang
>             Fix For: 2.1.0
>
>
> The temporary file is not deleted. I think the file is still open in some other stream. The problem is I have no idea how to find this place. Like in issue  	 CAMEL-1924 this only happens on windows as on unix you can delete a file even if there are open streams.
> testStreamCacheToFileShouldBeDeletedInCaseOfException
> 	java.lang.AssertionError: There should be no files expected:<1> but was:<0>
> 	
> org.apache.camel.component.jetty.HttpStreamCacheFileTest:71

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1934) Unit test failure in Windows for StreamCache. Temp file is not deleted

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53784#action_53784 ] 

Willem Jiang commented on CAMEL-1934:
-------------------------------------

We should close the FileStreamCache when the Exchange is done to make sure the temporary file close.
I will commit the patch after whole tests are passed.

> Unit test failure in Windows for StreamCache. Temp file is not deleted
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-1934
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1934
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jetty
>    Affects Versions: 2.0.0
>         Environment: Windows Vista 32 Bit, JDK 1.6.0_14 and maven 2.2.0 
>            Reporter: Christian Schneider
>            Assignee: Willem Jiang
>             Fix For: 2.1.0
>
>
> The temporary file is not deleted. I think the file is still open in some other stream. The problem is I have no idea how to find this place. Like in issue  	 CAMEL-1924 this only happens on windows as on unix you can delete a file even if there are open streams.
> testStreamCacheToFileShouldBeDeletedInCaseOfException
> 	java.lang.AssertionError: There should be no files expected:<1> but was:<0>
> 	
> org.apache.camel.component.jetty.HttpStreamCacheFileTest:71

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (CAMEL-1934) Unit test failure in Windows for StreamCache. Temp file is not deleted

Posted by "Christian Schneider (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Christian Schneider closed CAMEL-1934.
--------------------------------------


> Unit test failure in Windows for StreamCache. Temp file is not deleted
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-1934
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1934
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jetty
>    Affects Versions: 2.0.0
>         Environment: Windows Vista 32 Bit, JDK 1.6.0_14 and maven 2.2.0 
>            Reporter: Christian Schneider
>            Assignee: Willem Jiang
>             Fix For: 2.1.0
>
>
> The temporary file is not deleted. I think the file is still open in some other stream. The problem is I have no idea how to find this place. Like in issue  	 CAMEL-1924 this only happens on windows as on unix you can delete a file even if there are open streams.
> testStreamCacheToFileShouldBeDeletedInCaseOfException
> 	java.lang.AssertionError: There should be no files expected:<1> but was:<0>
> 	
> org.apache.camel.component.jetty.HttpStreamCacheFileTest:71

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (CAMEL-1934) Unit test failure in Windows for StreamCache. Temp file is not deleted

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-1934.
---------------------------------

    Resolution: Fixed

trunk
http://svn.apache.org/viewvc?rev=807874&view=rev

> Unit test failure in Windows for StreamCache. Temp file is not deleted
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-1934
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1934
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jetty
>    Affects Versions: 2.0.0
>         Environment: Windows Vista 32 Bit, JDK 1.6.0_14 and maven 2.2.0 
>            Reporter: Christian Schneider
>            Assignee: Willem Jiang
>             Fix For: 2.1.0
>
>
> The temporary file is not deleted. I think the file is still open in some other stream. The problem is I have no idea how to find this place. Like in issue  	 CAMEL-1924 this only happens on windows as on unix you can delete a file even if there are open streams.
> testStreamCacheToFileShouldBeDeletedInCaseOfException
> 	java.lang.AssertionError: There should be no files expected:<1> but was:<0>
> 	
> org.apache.camel.component.jetty.HttpStreamCacheFileTest:71

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CAMEL-1934) Unit test failure in Windows for StreamCache. Temp file is not deleted

Posted by "Christian Schneider (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/CAMEL-1934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=53795#action_53795 ] 

Christian Schneider commented on CAMEL-1934:
--------------------------------------------

Hi Willem,

perhaps you can also fix two minor errors in the test HttpStreamCacheFileTest.
In the assertions the expected and actual values are in the wrong order.

This is how it should be:
assertEquals("There should be no files", 0, files.length);

Greetings

Christian

> Unit test failure in Windows for StreamCache. Temp file is not deleted
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-1934
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1934
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jetty
>    Affects Versions: 2.0.0
>         Environment: Windows Vista 32 Bit, JDK 1.6.0_14 and maven 2.2.0 
>            Reporter: Christian Schneider
>            Assignee: Willem Jiang
>             Fix For: 2.1.0
>
>
> The temporary file is not deleted. I think the file is still open in some other stream. The problem is I have no idea how to find this place. Like in issue  	 CAMEL-1924 this only happens on windows as on unix you can delete a file even if there are open streams.
> testStreamCacheToFileShouldBeDeletedInCaseOfException
> 	java.lang.AssertionError: There should be no files expected:<1> but was:<0>
> 	
> org.apache.camel.component.jetty.HttpStreamCacheFileTest:71

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (CAMEL-1934) Unit test failure in Windows for StreamCache. Temp file is not deleted

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/CAMEL-1934?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang reassigned CAMEL-1934:
-----------------------------------

    Assignee: Willem Jiang

> Unit test failure in Windows for StreamCache. Temp file is not deleted
> ----------------------------------------------------------------------
>
>                 Key: CAMEL-1934
>                 URL: https://issues.apache.org/activemq/browse/CAMEL-1934
>             Project: Apache Camel
>          Issue Type: Bug
>          Components: camel-jetty
>    Affects Versions: 2.0.0
>         Environment: Windows Vista 32 Bit, JDK 1.6.0_14 and maven 2.2.0 
>            Reporter: Christian Schneider
>            Assignee: Willem Jiang
>             Fix For: 2.1.0
>
>
> The temporary file is not deleted. I think the file is still open in some other stream. The problem is I have no idea how to find this place. Like in issue  	 CAMEL-1924 this only happens on windows as on unix you can delete a file even if there are open streams.
> testStreamCacheToFileShouldBeDeletedInCaseOfException
> 	java.lang.AssertionError: There should be no files expected:<1> but was:<0>
> 	
> org.apache.camel.component.jetty.HttpStreamCacheFileTest:71

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.