提交 c8937505 编写于 作者: K kohsuke

[FIXED HUDSON-3733]

I filed a bug in the JNA project to keep track of this. In the mean time, you can set the system property "hudson.os.solaris.ZFSInstaller.disabled=true" in your JVM to prevent Hudson from using ZFS (which leads to this JVM crash.)

This fix will be in 1.311.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@18998 71c3de6d-444a-0410-be80-ed276b4c234a
上级 d51466bc
......@@ -88,7 +88,7 @@ public class ZFSInstaller extends AdministrativeMonitor implements Serializable
}
private boolean shouldBeActive() {
if(!System.getProperty("os.name").equals("SunOS"))
if(!System.getProperty("os.name").equals("SunOS") || disabled)
// on systems that don't have ZFS, we don't need this monitor
return false;
......@@ -424,4 +424,9 @@ public class ZFSInstaller extends AdministrativeMonitor implements Serializable
}
private static final Logger LOGGER = Logger.getLogger(ZFSInstaller.class.getName());
/**
* Escape hatch in case JNI calls fatally crash, like in HUDSON-3733.
*/
public static boolean disabled = Boolean.getBoolean(ZFSInstaller.class.getName()+".disabled");
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册