mirror of https://github.com/apache/cassandra
jvm upgrade dtests fail on java 11 caused by bad initialization order of DatabaseDescriptor and FileUtils
patch by David Capwell; reviewed by Jon Meredith, Jordan West for CASSANDRA-16002
This commit is contained in:
parent
e5c3d08a14
commit
624d01660b
|
|
@ -75,8 +75,8 @@ public final class FileUtils
|
|||
}
|
||||
catch (Throwable t)
|
||||
{
|
||||
logger.error("Cannot initialize un-mmaper. (Are you using a non-Oracle JVM?) Compacted data files will not be removed promptly. Consider using an Oracle JVM or using standard disk access mode", t);
|
||||
JVMStabilityInspector.inspectThrowable(t);
|
||||
logger.info("Cannot initialize un-mmaper. (Are you using a non-Oracle JVM?) Compacted data files will not be removed promptly. Consider using an Oracle JVM or using standard disk access mode");
|
||||
}
|
||||
canCleanDirectBuffers = canClean;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -506,14 +506,13 @@ public class Instance extends IsolatedExecutor implements IInvokableInstance
|
|||
sync(() -> {
|
||||
try
|
||||
{
|
||||
FileUtils.setFSErrorHandler(new DefaultFSErrorHandler());
|
||||
|
||||
mkdirs();
|
||||
|
||||
assert config.networkTopology().contains(config.broadcastAddress());
|
||||
DistributedTestSnitch.assign(config.networkTopology());
|
||||
|
||||
DatabaseDescriptor.setDaemonInitialized();
|
||||
FileUtils.setFSErrorHandler(new DefaultFSErrorHandler());
|
||||
DatabaseDescriptor.createAllDirectories();
|
||||
|
||||
// We need to persist this as soon as possible after startup checks.
|
||||
|
|
|
|||
Loading…
Reference in New Issue