Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ void testRunServerUsingProcess(@TempDir Path tempFolder) throws Exception {
serverProcess =
new TestProcessBuilder(getServerClass().getName())
.addConfigAsMainClassArgs(configuration)
.addJvmArg("-Djava.io.tmpdir=" + tempFolder.toAbsolutePath())
.addJvmArg(
"-Dorg.apache.fluss.shaded.netty4.io.netty.native.workdir="
+ tempFolder.toAbsolutePath())
.addMainClassArg(
String.format(
"-D%s=%s",
Expand Down Expand Up @@ -115,11 +119,11 @@ private void waitUntilServerStartup(TestProcessBuilder.TestProcess process) {
CommonTestUtils.waitUntil(
() ->
process.getProcessOutput().toString().contains(SERVER_STARTED_MARKER)
|| !process.getErrorOutput().toString().isEmpty(),
|| !process.getProcess().isAlive(),
Duration.ofMinutes(2),
null);
String errorMsg = process.getErrorOutput().toString();
if (!errorMsg.isEmpty()) {
if (!process.getProcess().isAlive()) {
String errorMsg = process.getErrorOutput().toString();
throw new IllegalStateException("Server process failed to start: " + errorMsg);
}
}
Expand Down