Rémy,

On 3/21/14, 3:17 PM, Rémy Maucherat wrote:
> 2014-03-21 19:02 GMT+01:00 Christopher Schultz <ch...@christopherschultz.net
>> :
> 
>> It appears that the test has completely-stalled in NIO2 on Linux 2.6.32
>> x86_64 under Oracle's 1.7.0_45 JVM.
>>
>> I haven't run into trouble with that particular test yet. Some tests could
> use some timeout and clean fail, though, for example, this one has a while
> (true) that is never going to exit if it doesn't get its exception, and
> that's wrong (and the test also doesn't check any assertion, so it needs
> improvements).
> 
> Does it always fail for you ?
> (you can quickly check it by using test.name
> =org/apache/catalina/connector/TestCoyoteAdapter.java)

I'll give it a try.

It looks like I have another hang, the first time I (re)tried. Here is
the tail of the console log:

    [junit] 21-Mar-2014 15:21:41.229 INFO [main]
org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler
["http-nio2-127.0.0.1-auto-4"]
    [junit] 21-Mar-2014 15:21:41.230 INFO [main]
org.apache.catalina.core.StandardService.startInternal Starting service
Tomcat
    [junit] 21-Mar-2014 15:21:41.230 INFO [main]
org.apache.catalina.core.StandardEngine.startInternal Starting Servlet
Engine: Apache Tomcat/8.0.4
    [junit] HTTP/1.1 200 OK
    [junit] Server: Apache-Coyote/1.1
    [junit] Content-Type: text/plain;charset=UTF-8
    [junit] Transfer-Encoding: chunked
    [junit] Date: Fri, 21 Mar 2014 19:21:40 GMT
    [junit]
    [junit] 4
    [junit] TEST
    [junit] 21-Mar-2014 15:21:41.239 INFO [main]
org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler
["http-nio2-127.0.0.1-auto-4-59301"]
    [junit] 21-Mar-2014 15:21:41.239 WARNING [main]
org.apache.tomcat.util.net.Nio2Endpoint.startInternal The NIO2 connector
is currently EXPERIMENTAL and should not be used in production
    [junit] 4
    [junit] TEST


Sending SIGQUIT shows that the main method is again stuck in testBug54928:

    [junit]    java.lang.Thread.State: TIMED_WAITING (sleeping)
    [junit]     at java.lang.Thread.sleep(Native Method)
    [junit]     at
org.apache.catalina.connector.TestCoyoteAdapter.testBug54928(TestCoyoteAdapter.java:305)
    [junit]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [junit]     at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

I can post the entire thread dump if that would be helpful.

For now, I'm going to re-test with nio2 disabled.

-chris

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to