|
20 | 20 | package org.elasticsearch.bootstrap;
|
21 | 21 |
|
22 | 22 | import com.carrotsearch.randomizedtesting.RandomizedRunner;
|
23 |
| - |
24 |
| -import org.apache.logging.log4j.Logger; |
25 | 23 | import org.apache.logging.log4j.LogManager;
|
| 24 | +import org.apache.logging.log4j.Logger; |
26 | 25 | import org.apache.lucene.util.LuceneTestCase;
|
27 | 26 | import org.elasticsearch.common.Booleans;
|
28 | 27 | import org.elasticsearch.common.Strings;
|
29 | 28 | import org.elasticsearch.common.SuppressForbidden;
|
30 | 29 | import org.elasticsearch.common.io.FileSystemUtils;
|
31 | 30 | import org.elasticsearch.common.io.PathUtils;
|
32 | 31 | import org.elasticsearch.common.network.IfConfig;
|
| 32 | +import org.elasticsearch.common.settings.Settings; |
33 | 33 | import org.elasticsearch.plugins.PluginInfo;
|
34 | 34 | import org.elasticsearch.secure_sm.SecureSM;
|
35 | 35 | import org.junit.Assert;
|
@@ -79,8 +79,10 @@ public class BootstrapForTesting {
|
79 | 79 | }
|
80 | 80 |
|
81 | 81 | // just like bootstrap, initialize natives, then SM
|
| 82 | + final boolean memoryLock = |
| 83 | + BootstrapSettings.MEMORY_LOCK_SETTING.get(Settings.EMPTY); // use the default bootstrap.memory_lock setting |
82 | 84 | final boolean systemCallFilter = Booleans.parseBoolean(System.getProperty("tests.system_call_filter", "true"));
|
83 |
| - Bootstrap.initializeNatives(javaTmpDir, true, systemCallFilter, true); |
| 85 | + Bootstrap.initializeNatives(javaTmpDir, memoryLock, systemCallFilter, true); |
84 | 86 |
|
85 | 87 | // initialize probes
|
86 | 88 | Bootstrap.initializeProbes();
|
|
0 commit comments