[
https://issues.apache.org/jira/browse/SOLR-6387?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14100128#comment-14100128
]
Uwe Schindler commented on SOLR-6387:
-------------------------------------
Hi,
from OpenJDK source code this shows all platforms where the bug occurs:
{source:java}
LINUX(LaunchMechanism.VFORK, LaunchMechanism.FORK),
BSD(LaunchMechanism.POSIX_SPAWN, LaunchMechanism.FORK),
SOLARIS(LaunchMechanism.POSIX_SPAWN, LaunchMechanism.FORK),
AIX(LaunchMechanism.POSIX_SPAWN, LaunchMechanism.FORK);
{source}
As you see, the capital "i" is included in the enum constant properties of BSD
(Mac & FreeBSD) and SOLARIS, so the bug applies there (POSIX_SPAWN). Linux is
not affected because it uses VFORK.
Because of that complexity, which is very JVM specific, I tend to *not* hack
those constants into the source code as Sysprops. So I would go with the
"swallow" Exception in SystemInfoHandler and exclude turkish in mapreduce (I
think there is already code that is disabled on some platforms like Windows).
> Add work around for JDK bug #8047340 ?
> --------------------------------------
>
> Key: SOLR-6387
> URL: https://issues.apache.org/jira/browse/SOLR-6387
> Project: Solr
> Issue Type: Bug
> Environment: Linux, MacOSX, POSIX in general
> Reporter: Hoss Man
> Assignee: Uwe Schindler
> Priority: Minor
> Labels: Java7, Java8
>
> Jenkin's tests occasionally fail with the following cryptic error...
> {noformat}
> java.lang.Error: posix_spawn is not a supported process launch mechanism on
> this platform.
> at
> __randomizedtesting.SeedInfo.seed([9219CAA3BCAA7365:7F07719937A772E1]:0)
> at java.lang.UNIXProcess$1.run(UNIXProcess.java:104)
> at java.lang.UNIXProcess$1.run(UNIXProcess.java:93)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.lang.UNIXProcess.<clinit>(UNIXProcess.java:91)
> at java.lang.ProcessImpl.start(ProcessImpl.java:130)
> at java.lang.ProcessBuilder.start(ProcessBuilder.java:1028)
> at java.lang.Runtime.exec(Runtime.java:617)
> {noformat}
> A commonality of most of these failures is that the turkish locale has been
> randomly selected, and apparently the Runtime.exec is busted whtn you use
> turkish...
> http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8047340
> http://java.thedizzyheights.com/2014/07/java-error-posix_spawn-is-not-a-supported-process-launch-mechanism-on-this-platform-when-trying-to-spawn-a-process/
> We should consider hardcoding the "jdk.lang.Process.launchMechanism" sys
> property mentioned as a workarround in the jdk bug report
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]