I ran them at least 10 times, and there was the timeout issue each time. Yes, the timeout is Surefire waiting for the forked VM. I applied the patch (I had done similar tries also) but I still have the issue on Windows 10.

You'll find the logs attached. It seems that the download is really advancing (inside target, I can see the file huge<numbers>txt slowly growing), but is just taking a long time. Additionally, the test class HugeFileDownloadTest is composed of 2 tests, downloading the same file 2 times with different parameters: from the logs, it seems one of them is succeeding (taking 140 seconds of the 400 in total), and then it times out performing the second.

Also, part of the issue is probably with the time it takes to create the 4 Go test file that is later downloaded through Wagon (maybe it should be done by calling the fsutil command when the test runs on Windows). I'll try to do more timings when running the tests with Ubuntu and see where the difference is.


Le 29/12/2016 à 01:18, Michael Osipov a écrit :
Am 2016-12-28 um 21:34 schrieb Guillaume Boué:
I have the same results as Hervé, both on Windows and Ubuntu. This is
what I have with Maven 3.3.9:

- Windows 10 64bit, OpenJDK 1.8.0_102, Test failure: Timeout in
HugeFileDownloadTest (perhaps the timeout should be increased?)

How often did you run the tests to get this result? I tried at least 20 times or more.
Can you enable the logging I asked Dan for? You might see something else.

By timeout do you mean the timeout Surefire waits for the forked VM?

Can you try the attached patch? I have noticed that in this HugeFileDownloadTest the server is never shutdown as well as in other cases.

Michael



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org



---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
https://www.avast.com/antivirus
2016-12-29T12:14:53.319 [main] INFO org.eclipse.jetty.server.Server - 
jetty-8.1.22.v20160922
2016-12-29T12:14:53.334 [main] INFO org.eclipse.jetty.server.AbstractConnector 
- Started SelectChannelConnector@0.0.0.0:50893
http://localhost:50893 - Session: Opened  
2016-12-29T12:14:53.334 [main] DEBUG 
org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: 
compatibility
2016-12-29T12:14:53.334 [main] DEBUG 
org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection 
request: [route: {}->http://localhost:50893][total kept alive: 38; route 
allocated: 0 of 20; total allocated: 39 of 40]
2016-12-29T12:14:53.334 [main] DEBUG 
org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection 
leased: [id: 254][route: {}->http://localhost:50893][total kept alive: 38; 
route allocated: 1 of 20; total allocated: 40 of 40]
2016-12-29T12:14:53.334 [main] DEBUG 
org.apache.http.impl.execchain.MainClientExec - Opening connection 
{}->http://localhost:50893
2016-12-29T12:14:53.334 [main] DEBUG 
org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to 
localhost/127.0.0.1:50893
2016-12-29T12:14:53.334 [main] DEBUG 
org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection 
established 127.0.0.1:50896<->127.0.0.1:50893
2016-12-29T12:14:53.334 [main] DEBUG 
org.apache.http.impl.conn.DefaultManagedHttpClientConnection - 
http-outgoing-254: set socket timeout to 1800000
2016-12-29T12:14:53.334 [main] DEBUG 
org.apache.http.impl.execchain.MainClientExec - Executing request GET 
/hugefile.txt HTTP/1.1
2016-12-29T12:14:53.334 [main] DEBUG 
org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
2016-12-29T12:14:53.334 [main] DEBUG 
org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
2016-12-29T12:14:53.334 [main] DEBUG org.apache.http.headers - 
http-outgoing-254 >> GET /hugefile.txt HTTP/1.1
2016-12-29T12:14:53.334 [main] DEBUG org.apache.http.headers - 
http-outgoing-254 >> Cache-control: no-cache
2016-12-29T12:14:53.334 [main] DEBUG org.apache.http.headers - 
http-outgoing-254 >> Cache-store: no-store
2016-12-29T12:14:53.334 [main] DEBUG org.apache.http.headers - 
http-outgoing-254 >> Pragma: no-cache
2016-12-29T12:14:53.334 [main] DEBUG org.apache.http.headers - 
http-outgoing-254 >> Expires: 0
2016-12-29T12:14:53.334 [main] DEBUG org.apache.http.headers - 
http-outgoing-254 >> Accept-Encoding: gzip
2016-12-29T12:14:53.334 [main] DEBUG org.apache.http.headers - 
http-outgoing-254 >> Host: localhost:50893
2016-12-29T12:14:53.334 [main] DEBUG org.apache.http.headers - 
http-outgoing-254 >> Connection: Keep-Alive
2016-12-29T12:14:53.334 [main] DEBUG org.apache.http.headers - 
http-outgoing-254 >> User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
2016-12-29T12:14:53.459 [main] DEBUG org.apache.http.headers - 
http-outgoing-254 << HTTP/1.1 200 OK
2016-12-29T12:14:53.459 [main] DEBUG org.apache.http.headers - 
http-outgoing-254 << Transfer-Encoding: chunked
2016-12-29T12:14:53.459 [main] DEBUG org.apache.http.headers - 
http-outgoing-254 << Server: Jetty(8.1.22.v20160922)
2016-12-29T12:14:53.459 [main] DEBUG 
org.apache.http.impl.execchain.MainClientExec - Connection can be kept alive 
indefinitely
2016-12-29T12:17:08.066 [main] DEBUG 
org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection [id: 
254][route: {}->http://localhost:50893] can be kept alive indefinitely
2016-12-29T12:17:08.066 [main] DEBUG 
org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection 
released: [id: 254][route: {}->http://localhost:50893][total kept alive: 39; 
route allocated: 1 of 20; total allocated: 40 of 40]
http://localhost:50893 - Session: Disconnecting  
http://localhost:50893 - Session: Disconnected
2016-12-29T12:17:08.426 [main] INFO 
org.eclipse.jetty.server.handler.ContextHandler - stopped 
o.e.j.s.ServletContextHandler{/,file:/C:/Users/Guillaume/git/maven-wagon/wagon-providers/wagon-http/target/}
2016-12-29T12:17:09.227 [main] INFO org.eclipse.jetty.server.Server - 
jetty-8.1.22.v20160922
2016-12-29T12:17:09.227 [main] INFO org.eclipse.jetty.server.AbstractConnector 
- Started SelectChannelConnector@0.0.0.0:50931
http://localhost:50931 - Session: Opened  
2016-12-29T12:17:09.321 [main] DEBUG 
org.apache.http.client.protocol.RequestAddCookies - CookieSpec selected: 
compatibility
2016-12-29T12:17:09.321 [main] DEBUG 
org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection 
request: [route: {}->http://localhost:50931][total kept alive: 39; route 
allocated: 0 of 20; total allocated: 40 of 40]
2016-12-29T12:17:09.321 [main] DEBUG 
org.apache.http.impl.conn.DefaultManagedHttpClientConnection - 
http-outgoing-196: Close connection
2016-12-29T12:17:09.321 [main] DEBUG 
org.apache.http.impl.conn.PoolingHttpClientConnectionManager - Connection 
leased: [id: 255][route: {}->http://localhost:50931][total kept alive: 38; 
route allocated: 1 of 20; total allocated: 40 of 40]
2016-12-29T12:17:09.321 [main] DEBUG 
org.apache.http.impl.execchain.MainClientExec - Opening connection 
{}->http://localhost:50931
2016-12-29T12:17:09.321 [main] DEBUG 
org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connecting to 
localhost/127.0.0.1:50931
2016-12-29T12:17:09.321 [main] DEBUG 
org.apache.http.impl.conn.DefaultHttpClientConnectionOperator - Connection 
established 127.0.0.1:50934<->127.0.0.1:50931
2016-12-29T12:17:09.321 [main] DEBUG 
org.apache.http.impl.conn.DefaultManagedHttpClientConnection - 
http-outgoing-255: set socket timeout to 1800000
2016-12-29T12:17:09.321 [main] DEBUG 
org.apache.http.impl.execchain.MainClientExec - Executing request GET 
/hugefile.txt HTTP/1.1
2016-12-29T12:17:09.321 [main] DEBUG 
org.apache.http.impl.execchain.MainClientExec - Target auth state: UNCHALLENGED
2016-12-29T12:17:09.321 [main] DEBUG 
org.apache.http.impl.execchain.MainClientExec - Proxy auth state: UNCHALLENGED
2016-12-29T12:17:09.321 [main] DEBUG org.apache.http.headers - 
http-outgoing-255 >> GET /hugefile.txt HTTP/1.1
2016-12-29T12:17:09.321 [main] DEBUG org.apache.http.headers - 
http-outgoing-255 >> Cache-control: no-cache
2016-12-29T12:17:09.321 [main] DEBUG org.apache.http.headers - 
http-outgoing-255 >> Cache-store: no-store
2016-12-29T12:17:09.321 [main] DEBUG org.apache.http.headers - 
http-outgoing-255 >> Pragma: no-cache
2016-12-29T12:17:09.321 [main] DEBUG org.apache.http.headers - 
http-outgoing-255 >> Expires: 0
2016-12-29T12:17:09.321 [main] DEBUG org.apache.http.headers - 
http-outgoing-255 >> Accept-Encoding: gzip
2016-12-29T12:17:09.321 [main] DEBUG org.apache.http.headers - 
http-outgoing-255 >> Host: localhost:50931
2016-12-29T12:17:09.321 [main] DEBUG org.apache.http.headers - 
http-outgoing-255 >> Connection: Keep-Alive
2016-12-29T12:17:09.321 [main] DEBUG org.apache.http.headers - 
http-outgoing-255 >> User-Agent: Apache-HttpClient/4.5.2 (Java/1.8.0_102)
2016-12-29T12:17:09.336 [main] DEBUG org.apache.http.headers - 
http-outgoing-255 << HTTP/1.1 200 OK
2016-12-29T12:17:09.336 [main] DEBUG org.apache.http.headers - 
http-outgoing-255 << Accept-Ranges: bytes
2016-12-29T12:17:09.336 [main] DEBUG org.apache.http.headers - 
http-outgoing-255 << Content-Type: text/plain
2016-12-29T12:17:09.336 [main] DEBUG org.apache.http.headers - 
http-outgoing-255 << Content-Length: 4294967295
2016-12-29T12:17:09.336 [main] DEBUG org.apache.http.headers - 
http-outgoing-255 << Last-Modified: Thu, 29 Dec 2016 11:14:06 GMT
2016-12-29T12:17:09.336 [main] DEBUG org.apache.http.headers - 
http-outgoing-255 << Connection: close
2016-12-29T12:17:09.336 [main] DEBUG org.apache.http.headers - 
http-outgoing-255 << Server: Jetty(8.1.22.v20160922)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to