Skip to content

Commit

Permalink
Use /tmp directory to transfer data from host to container
Browse files Browse the repository at this point in the history
  • Loading branch information
zhicwu committed Jun 26, 2022
1 parent cfbfe13 commit e86d45e
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ static Process startProcess(ClickHouseNode server, ClickHouseRequest<?> request)
ClickHouseChecker.isNullOrBlank(hostDir) ? System.getProperty("java.io.tmpdir") : hostDir);
String containerDir = (String) config.getOption(ClickHouseCommandLineOption.CLI_CONTAINER_DIRECTORY);
if (ClickHouseChecker.isNullOrBlank(containerDir)) {
containerDir = "/data/";
containerDir = "/tmp/";
} else {
containerDir = ClickHouseUtils.normalizeDirectory(containerDir);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ public enum ClickHouseCommandLineOption implements ClickHouseOption {
/**
* Work directory inside container, only works running in docker mode(when
* {@link #CLICKHOUSE_CLI_PATH} is not available). Empty value is treated as
* '/data'.
* '/tmp'.
*/
CLI_CONTAINER_DIRECTORY("cli_container_directory", "",
"Work directory inside container, empty value is treated as '/data'"),
"Work directory inside container, empty value is treated as '/tmp'"),
/**
* Command-line work directory. Empty value is treated as system temporary
* directory(e.g. {@code System.getProperty("java.io.tmpdir")}). When running in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ protected ClickHouseNode getServer() {
return super.getServer();
}

@Test(groups = { "integration" })
@Override
public void testCustomLoad() throws Exception {
throw new SkipException("Skip due to time out error");
}

@Test(groups = { "integration" })
@Override
public void testLoadRawData() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -975,7 +975,6 @@ public void testCustomWriter() throws Exception {

@Test(groups = { "integration" })
public void testDumpAndLoadFile() throws Exception {
// super.testLoadRawData();
ClickHouseNode server = getServer();
ClickHouseClient.send(server, "drop table if exists test_dump_load_file",
"create table test_dump_load_file(a UInt64, b Nullable(String)) engine=MergeTree() order by tuple()")
Expand Down

0 comments on commit e86d45e

Please sign in to comment.