Github user sohami commented on a diff in the pull request:

    https://github.com/apache/drill/pull/693#discussion_r92462112
  
    --- Diff: pom.xml ---
    @@ -423,21 +423,23 @@
               <artifactId>maven-surefire-plugin</artifactId>
               <version>2.17</version>
               <configuration>
    -            <argLine>-Xms512m -Xmx3g -Ddrill.exec.http.enabled=false
    -              -Ddrill.exec.sys.store.provider.local.write=false
    -              
-Dorg.apache.drill.exec.server.Drillbit.system_options="org.apache.drill.exec.compile.ClassTransformer.scalar_replacement=on"
    -              -Ddrill.test.query.printing.silent=true
    -              -Ddrill.catastrophic_to_standard_out=true
    +            <argLine>-Xms512m -Xmx3g
                   -XX:MaxPermSize=512M -XX:MaxDirectMemorySize=3072M
    -              -Djava.net.preferIPv4Stack=true
    -              -Djava.awt.headless=true
                   -XX:+CMSClassUnloadingEnabled -ea</argLine>
                 <forkCount>${forkCount}</forkCount>
                 <reuseForks>true</reuseForks>
                 <additionalClasspathElements>
                   
<additionalClasspathElement>./exec/jdbc/src/test/resources/storage-plugins.json</additionalClasspathElement>
                 </additionalClasspathElements>
                 <systemPropertyVariables>
    +              <drill.exec.http.enabled>false</drill.exec.http.enabled>
    +              
<drill.exec.sys.store.provider.local.write>false</drill.exec.sys.store.provider.local.write>
    +              
<org.apache.drill.exec.server.Drillbit.system_options>"org.apache.drill.exec.compile.ClassTransformer.scalar_replacement=on"</org.apache.drill.exec.server.Drillbit.system_options>
    +              
<drill.test.query.printing.silent>true</drill.test.query.printing.silent>
    +              
<drill.catastrophic_to_standard_out>true</drill.catastrophic_to_standard_out>
    +              
<drill.memory.debug.allocator>true</drill.memory.debug.allocator>
    +              <java.net.preferIPv4Stack>true</java.net.preferIPv4Stack>
    --- End diff --
    
    "Java.net.preferIPv4Stack" property needs to be set as command line option 
since it's checked by VM only once at startup. 
[Reference](https://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html):
    
    And Maven 
[documentation](http://maven.apache.org/surefire/maven-surefire-plugin/examples/system-properties.html)
 states that SystemProperties are used only for the ones that can be set after 
VM startup.
    
    Guess same thing is with "java.awt.headless"


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to