[ https://jira.jboss.org/browse/JBAS-8706?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12568214#comment-12568214 ]
Richard Achmatowicz commented on JBAS-8706:
-------------------------------------------
These tests are still failing. The changes made to findCookie() to handle the IPv6 case seem OK.
The test fails on the last assertion, as the cookie which is supposed to have been replicated is not replicated, as the debugging information below shows:
<testcase classname="org.jboss.test.cluster.defaultcfg.web.test.CleanShutdownTestCase" name="testShutdown" time="14.542">
<failure message="null" type="junit.framework.AssertionFailedError">junit.framework.AssertionFailedError: null
at org.jboss.test.cluster.defaultcfg.web.test.CleanShutdownTestCase.testShutdown(CleanShutdownTestCase.java:202)
at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
at junit.extensions.TestSetup.run(TestSetup.java:27)
</failure>
</testcase>
<testcase classname="org.jboss.test.cluster.defaultcfg.web.test.CleanShutdownTestCase" name="testServerFound" time="0.0010" />
<system-out><![CDATA[
After initial request
[3ffe:ffff:0100:f101::1] JSESSIONID /http-sr LD+13NDgjbrgW6v+2coQmg__
findCookie: address = /3ffe:ffff:100:f101:0:0:0:1, name = sleep
cookie: domain = [3ffe:ffff:0100:f101::1]
cookie: name = JSESSIONID
cookie: address = /3ffe:ffff:100:f101:0:0:0:1
After request initiated prior to shutdown
[3ffe:ffff:0100:f101::1] JSESSIONID /http-sr LD+13NDgjbrgW6v+2coQmg__
[3ffe:ffff:0100:f101::1] sleep /http-sr 0
findCookie: address = /3ffe:ffff:100:f101:0:0:0:1, name = sleep
cookie: domain = [3ffe:ffff:0100:f101::1]
cookie: name = JSESSIONID
cookie: address = /3ffe:ffff:100:f101:0:0:0:1
cookie: domain = [3ffe:ffff:0100:f101::1]
cookie: name = sleep
cookie: address = /3ffe:ffff:100:f101:0:0:0:1
After request to shutdown server
[3ffe:ffff:0100:f101::1] JSESSIONID /http-sr LD+13NDgjbrgW6v+2coQmg__
[3ffe:ffff:0100:f101::1] sleep /http-sr 0
After cookie copy to failover server
[3ffe:ffff:0100:f101::1] JSESSIONID /http-sr LD+13NDgjbrgW6v+2coQmg__
[3ffe:ffff:0100:f101::1] sleep /http-sr 0
After request on new server
[3ffe:ffff:0100:f101::1] JSESSIONID /http-sr LD+13NDgjbrgW6v+2coQmg__
[3ffe:ffff:0100:f101::1] sleep /http-sr 0
[3ffe:ffff:0100:f101::2] JSESSIONID /http-sr ObLAC8ne45JE-UaKo0vI6w__
findCookie: address = /3ffe:ffff:100:f101:0:0:0:2, name = sleep
cookie: domain = [3ffe:ffff:0100:f101::1]
cookie: name = JSESSIONID
cookie: address = /3ffe:ffff:100:f101:0:0:0:1
cookie: domain = [3ffe:ffff:0100:f101::1]
cookie: name = sleep
cookie: address = /3ffe:ffff:100:f101:0:0:0:1
cookie: domain = [3ffe:ffff:0100:f101::2]
cookie: name = JSESSIONID
cookie: address = /3ffe:ffff:100:f101:0:0:0:2
]]></system-out>
<system-err><![CDATA[]]></system-err>
</testsuite>
> org.jboss.test.cluster.defaultcfg.web.test.CleanShutdownTestCase fails when run against IPv6 addresses
> ------------------------------------------------------------------------------------------------------
>
> Key: JBAS-8706
> URL: https://jira.jboss.org/browse/JBAS-8706
> Project: JBoss Application Server
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Clustering, Test Suite
> Affects Versions: 6.0.0.CR1
> Reporter: Richard Achmatowicz
> Assignee: Paul Ferraro
> Fix For: 6.0.0.Final
>
>
> org.jboss.test.cluster.defaultcfg.web.test.CleanShutdownTestCase checks the behaviour of HTTP requests to a server which in the process of shutting down.
> As part of its processing, it uses a method
> Cookie findCookie(int serverIndex, String name)
> to find a cookie with a given name on a given server (usually indexed by 0 or 1).
> Cookies are matched when they have the same domain and name.
> Cookie domains can be represented as hostnames, or IP address literals.
> Our version of HttpClient (which I hacked about one year ago) will always use enclosing brackets when presented with an IPv6 address literal.
> HttpClient 3.0.1 and 3.1 did not support IPv6 address literals at the time.
> I may have to reinvestigate what the correct standard is, but for the time being, the above test is failing because findCookie does not wrap IPv6 address literals
> in square brackets before trying to match. As a result, we get assertion failures in the test, even though we have the correct cookies being returned:
> Error Message
> null
> Stacktrace
> junit.framework.AssertionFailedError: null
> at org.jboss.test.cluster.defaultcfg.web.test.CleanShutdownTestCase.testShutdown(CleanShutdownTestCase.java:164)
> at junit.extensions.TestDecorator.basicRun(TestDecorator.java:24)
> at junit.extensions.TestSetup$1.protect(TestSetup.java:23)
> at junit.extensions.TestSetup.run(TestSetup.java:27)
> Standard Output
> After initial request
> [fec0:0:a16:ffff::d] JSESSIONID /http-sr Eiq93h0lJFU7W6Y7YDNnXw__.cluster-udp-DIST-0
> After request initiated prior to shutdown
> [fec0:0:a16:ffff::d] JSESSIONID /http-sr Eiq93h0lJFU7W6Y7YDNnXw__.cluster-udp-DIST-0
> [fec0:0:a16:ffff::d] sleep /http-sr 0
> findCookie(0, "0") is trying to match on the pair ("fec0:0:a16:ffff::d", "0")
>
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira