You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Andrey Yakushev (JIRA)" <ji...@apache.org> on 2007/12/06 11:45:43 UTC
[jira] Created: (HARMONY-5266) [buildtest][reliability]
HttpConnectionTest fails when www.apache.org is not accessible
[buildtest][reliability] HttpConnectionTest fails when www.apache.org is not accessible
---------------------------------------------------------------------------------------
Key: HARMONY-5266
URL: https://issues.apache.org/jira/browse/HARMONY-5266
Project: Harmony
Issue Type: Test
Components: build - test - ci
Environment: revision 601425, all platforms
Reporter: Andrey Yakushev
HttpConnectionTest tries to connect www.apache.org for testing purpouses by default. I think it is spam-like behavior in not too polite, moreover it caused fails if site is not available or proxy was not set correctly.
I suggest adding simple http stub server into this test in order to get rid of such dependency.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-5266) [buildtest][reliability]
HttpConnectionTest fails when www.apache.org is not accessible
Posted by "Andrey Yakushev (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrey Yakushev updated HARMONY-5266:
-------------------------------------
Attachment: internal_server_HttpConnectionTest.v6.patch
I'd just found that my patch didn't work on RI VM implementations. They demand some respond from the server to work correctly. I've added it. Could we investigate this peculiarity in our HttpURLConnection implementation?
Also I found a race condition in the test code. Actually I copypasted the code from the MultiConnectTest and it also should be corrected together with SingleConnectTest.
So internal_server_HttpConnectionTest.v6.patch contains new corrected version.
It works well on platforms mentioned previously.
> [buildtest][reliability] HttpConnectionTest fails when www.apache.org is not accessible
> ---------------------------------------------------------------------------------------
>
> Key: HARMONY-5266
> URL: https://issues.apache.org/jira/browse/HARMONY-5266
> Project: Harmony
> Issue Type: Test
> Components: build - test - ci
> Environment: revision 601425, all platforms
> Reporter: Andrey Yakushev
> Assignee: Stepan Mishura
> Attachments: internal_server_HttpConnectionTest.patch, internal_server_HttpConnectionTest.v6.patch
>
>
> HttpConnectionTest tries to connect harmony.apache.org for testing purposes by default. I think it is spam-like behavior in not too polite; moreover it caused fails if site is not available or proxy was not set correctly.
> I suggest adding simple http stub server into this test in order to get rid of such dependency.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-5266) [buildtest][reliability]
HttpConnectionTest fails when www.apache.org is not accessible
Posted by "Andrey Yakushev (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrey Yakushev updated HARMONY-5266:
-------------------------------------
Description:
HttpConnectionTest tries to connect harmony.apache.org for testing purposes by default. I think it is spam-like behavior in not too polite; moreover it caused fails if site is not available or proxy was not set correctly.
I suggest adding simple http stub server into this test in order to get rid of such dependency.
was:
HttpConnectionTest tries to connect www.apache.org for testing purpouses by default. I think it is spam-like behavior in not too polite, moreover it caused fails if site is not available or proxy was not set correctly.
I suggest adding simple http stub server into this test in order to get rid of such dependency.
> [buildtest][reliability] HttpConnectionTest fails when www.apache.org is not accessible
> ---------------------------------------------------------------------------------------
>
> Key: HARMONY-5266
> URL: https://issues.apache.org/jira/browse/HARMONY-5266
> Project: Harmony
> Issue Type: Test
> Components: build - test - ci
> Environment: revision 601425, all platforms
> Reporter: Andrey Yakushev
>
> HttpConnectionTest tries to connect harmony.apache.org for testing purposes by default. I think it is spam-like behavior in not too polite; moreover it caused fails if site is not available or proxy was not set correctly.
> I suggest adding simple http stub server into this test in order to get rid of such dependency.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-5266) [buildtest][reliability]
HttpConnectionTest fails when www.apache.org is not accessible
Posted by "Andrey Yakushev (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrey Yakushev updated HARMONY-5266:
-------------------------------------
Attachment: internal_server_HttpConnectionTest.patch
internal_server_HttpConnectionTest.patch adds very simple stub server to the test. I tested it on Windows x86, Linux x86 and Linux x86_64
> [buildtest][reliability] HttpConnectionTest fails when www.apache.org is not accessible
> ---------------------------------------------------------------------------------------
>
> Key: HARMONY-5266
> URL: https://issues.apache.org/jira/browse/HARMONY-5266
> Project: Harmony
> Issue Type: Test
> Components: build - test - ci
> Environment: revision 601425, all platforms
> Reporter: Andrey Yakushev
> Attachments: internal_server_HttpConnectionTest.patch
>
>
> HttpConnectionTest tries to connect harmony.apache.org for testing purposes by default. I think it is spam-like behavior in not too polite; moreover it caused fails if site is not available or proxy was not set correctly.
> I suggest adding simple http stub server into this test in order to get rid of such dependency.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-5266) [buildtest][reliability]
HttpConnectionTest fails when www.apache.org is not accessible
Posted by "Andrey Yakushev (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrey Yakushev updated HARMONY-5266:
-------------------------------------
Attachment: internal_server_HttpConnectionTest.v9.patch
I've corrected the leakage.
Also I've found that new version works too fast and could exhausts all windows listening sockets. I've increased the page content size to avoid this.
New version is placed in attached internal_server_HttpConnectionTest.v9.patch file.
> [buildtest][reliability] HttpConnectionTest fails when www.apache.org is not accessible
> ---------------------------------------------------------------------------------------
>
> Key: HARMONY-5266
> URL: https://issues.apache.org/jira/browse/HARMONY-5266
> Project: Harmony
> Issue Type: Test
> Components: build - test - ci
> Environment: revision 601425, all platforms
> Reporter: Andrey Yakushev
> Assignee: Stepan Mishura
> Attachments: internal_server_HttpConnectionTest.patch, internal_server_HttpConnectionTest.v6.patch, internal_server_HttpConnectionTest.v9.patch
>
>
> HttpConnectionTest tries to connect harmony.apache.org for testing purposes by default. I think it is spam-like behavior in not too polite; moreover it caused fails if site is not available or proxy was not set correctly.
> I suggest adding simple http stub server into this test in order to get rid of such dependency.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HARMONY-5266) [buildtest][reliability]
HttpConnectionTest fails when www.apache.org is not accessible
Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stepan Mishura reassigned HARMONY-5266:
---------------------------------------
Assignee: Stepan Mishura
> [buildtest][reliability] HttpConnectionTest fails when www.apache.org is not accessible
> ---------------------------------------------------------------------------------------
>
> Key: HARMONY-5266
> URL: https://issues.apache.org/jira/browse/HARMONY-5266
> Project: Harmony
> Issue Type: Test
> Components: build - test - ci
> Environment: revision 601425, all platforms
> Reporter: Andrey Yakushev
> Assignee: Stepan Mishura
> Attachments: internal_server_HttpConnectionTest.patch
>
>
> HttpConnectionTest tries to connect harmony.apache.org for testing purposes by default. I think it is spam-like behavior in not too polite; moreover it caused fails if site is not available or proxy was not set correctly.
> I suggest adding simple http stub server into this test in order to get rid of such dependency.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HARMONY-5266) [buildtest][reliability]
HttpConnectionTest fails when www.apache.org is not accessible
Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stepan Mishura resolved HARMONY-5266.
-------------------------------------
Resolution: Fixed
Thanks Andrey - the patch was applied to BTI branch 2.0 at r603210.
Please check that the patch was applied as you expected.
> [buildtest][reliability] HttpConnectionTest fails when www.apache.org is not accessible
> ---------------------------------------------------------------------------------------
>
> Key: HARMONY-5266
> URL: https://issues.apache.org/jira/browse/HARMONY-5266
> Project: Harmony
> Issue Type: Test
> Components: build - test - ci
> Environment: revision 601425, all platforms
> Reporter: Andrey Yakushev
> Assignee: Stepan Mishura
> Attachments: internal_server_HttpConnectionTest.patch, internal_server_HttpConnectionTest.v6.patch, internal_server_HttpConnectionTest.v9.patch
>
>
> HttpConnectionTest tries to connect harmony.apache.org for testing purposes by default. I think it is spam-like behavior in not too polite; moreover it caused fails if site is not available or proxy was not set correctly.
> I suggest adding simple http stub server into this test in order to get rid of such dependency.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-5266) [buildtest][reliability]
HttpConnectionTest fails when www.apache.org is not accessible
Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-5266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12549351 ]
Stepan Mishura commented on HARMONY-5266:
-----------------------------------------
Andrey, after applying the last patch I still see the test failure:
OK
OK
Server thread 980 could not accept request: The address is not available
Failed to connect to http://localhost:42797/ : Too many open files
FAILED
*** iteration: 972
test result is 105
Test FAILED
It looks like the test doesn't care about closing all opened streams.
> [buildtest][reliability] HttpConnectionTest fails when www.apache.org is not accessible
> ---------------------------------------------------------------------------------------
>
> Key: HARMONY-5266
> URL: https://issues.apache.org/jira/browse/HARMONY-5266
> Project: Harmony
> Issue Type: Test
> Components: build - test - ci
> Environment: revision 601425, all platforms
> Reporter: Andrey Yakushev
> Assignee: Stepan Mishura
> Attachments: internal_server_HttpConnectionTest.patch, internal_server_HttpConnectionTest.v6.patch
>
>
> HttpConnectionTest tries to connect harmony.apache.org for testing purposes by default. I think it is spam-like behavior in not too polite; moreover it caused fails if site is not available or proxy was not set correctly.
> I suggest adding simple http stub server into this test in order to get rid of such dependency.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.