[ 
https://issues.apache.org/jira/browse/OAK-10266?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17760757#comment-17760757
 ] 

Marcel Reutegger commented on OAK-10266:
----------------------------------------

With the following patch the test runs fine on my machine.
{noformat}
diff --git a/oak-parent/pom.xml b/oak-parent/pom.xml
index 6985e10fa3..b5af63b554 100644
--- a/oak-parent/pom.xml
+++ b/oak-parent/pom.xml
@@ -36,7 +36,7 @@
   <properties>
     <minimalMavenBuildVersion>3.3.9</minimalMavenBuildVersion><!-- evaluated 
by ASF parent -->
     <test.opts.memory>-Xmx512m</test.opts.memory>
-    <test.opts>${test.opts.coverage} ${test.opts.memory} 
-XX:+HeapDumpOnOutOfMemoryError -Dupdate.limit=100 
-Djava.awt.headless=true</test.opts>
+    <test.opts>${test.opts.coverage} ${test.opts.memory} 
-XX:+HeapDumpOnOutOfMemoryError -Dupdate.limit=100 -Djava.awt.headless=true 
-Djava.net.preferIPv4Stack=true</test.opts>
     <skip.deployment>false</skip.deployment>
     <skip.coverage>true</skip.coverage>
     <minimum.line.coverage>0.0</minimum.line.coverage>
{noformat}

But I rather think the test itself should be somehow improved to work on either 
IP stack.

> ClientIpFilterTest fails for localhost
> --------------------------------------
>
>                 Key: OAK-10266
>                 URL: https://issues.apache.org/jira/browse/OAK-10266
>             Project: Jackrabbit Oak
>          Issue Type: Bug
>          Components: segment-tar
>            Reporter: Marcel Reutegger
>            Priority: Minor
>
> ClientIpFilterTest fails on my machine for filters=localhost.
> The JVM returns an IP v6 address, which does not match the expected 127.0.0.1.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to