PHOENIX-2348 The value of DEFAULT_SPOOL_DIRECTORY is invalid on Windows (ChiaPing Tsai)
Project: http://git-wip-us.apache.org/repos/asf/phoenix/repo Commit: http://git-wip-us.apache.org/repos/asf/phoenix/commit/5176ed63 Tree: http://git-wip-us.apache.org/repos/asf/phoenix/tree/5176ed63 Diff: http://git-wip-us.apache.org/repos/asf/phoenix/diff/5176ed63 Branch: refs/heads/calcite Commit: 5176ed6371778daa58300592620483b619b668fb Parents: e2b6009 Author: Dumindu Buddhika <dumin...@apache.org> Authored: Tue Jan 26 08:29:15 2016 +0530 Committer: Dumindu Buddhika <dumin...@apache.org> Committed: Tue Jan 26 08:29:15 2016 +0530 ---------------------------------------------------------------------- .../main/java/org/apache/phoenix/query/QueryServicesOptions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/phoenix/blob/5176ed63/phoenix-core/src/main/java/org/apache/phoenix/query/QueryServicesOptions.java ---------------------------------------------------------------------- diff --git a/phoenix-core/src/main/java/org/apache/phoenix/query/QueryServicesOptions.java b/phoenix-core/src/main/java/org/apache/phoenix/query/QueryServicesOptions.java index c9bc19b..1838b51 100644 --- a/phoenix-core/src/main/java/org/apache/phoenix/query/QueryServicesOptions.java +++ b/phoenix-core/src/main/java/org/apache/phoenix/query/QueryServicesOptions.java @@ -103,7 +103,7 @@ public class QueryServicesOptions { public static final int DEFAULT_QUEUE_SIZE = 5000; public static final int DEFAULT_THREAD_TIMEOUT_MS = 600000; // 10min public static final int DEFAULT_SPOOL_THRESHOLD_BYTES = 1024 * 1024 * 20; // 20m - public static final String DEFAULT_SPOOL_DIRECTORY = "/tmp"; + public static final String DEFAULT_SPOOL_DIRECTORY = System.getProperty("java.io.tmpdir"); public static final int DEFAULT_MAX_MEMORY_PERC = 15; // 15% of heap public static final int DEFAULT_MAX_MEMORY_WAIT_MS = 10000; public static final int DEFAULT_MAX_TENANT_MEMORY_PERC = 100;