ignore check on Mac (#17486)

This commit is contained in:
Patrick Mann
2023-11-27 17:54:53 +01:00
committed by GitHub
parent b29be6fcc7
commit 72fcbbe960

View File

@@ -16,6 +16,7 @@
*/
package org.graylog.datanode.bootstrap.preflight;
import org.apache.commons.exec.OS;
import org.graylog2.bootstrap.preflight.PreflightCheck;
import org.graylog2.bootstrap.preflight.PreflightCheckException;
import org.slf4j.Logger;
@@ -35,6 +36,10 @@ public class OpenSearchPreconditionsCheck implements PreflightCheck {
@Override
public void runCheck() throws PreflightCheckException {
if (OS.isFamilyMac()) {
return; // don't throw an exception on Mac dev machines
}
ProcessBuilder builder = new ProcessBuilder().redirectErrorStream(true);
builder.command("/sbin/sysctl", "-n", "vm.max_map_count");
try {