Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EB0BE17595 for ; Fri, 17 Apr 2015 13:48:50 +0000 (UTC) Received: (qmail 97758 invoked by uid 500); 17 Apr 2015 13:48:50 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 97717 invoked by uid 500); 17 Apr 2015 13:48:50 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 97708 invoked by uid 99); 17 Apr 2015 13:48:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 13:48:50 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: message received from 54.164.171.186 which is an MX secondary for issues@flink.apache.org) Received: from [54.164.171.186] (HELO mx1-us-east.apache.org) (54.164.171.186) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 13:48:46 +0000 Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id C54B14540B for ; Fri, 17 Apr 2015 13:48:25 +0000 (UTC) Received: (qmail 96771 invoked by uid 99); 17 Apr 2015 13:48:25 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 13:48:25 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 0FF6ADFF8B; Fri, 17 Apr 2015 13:48:25 +0000 (UTC) From: matadorhong To: issues@flink.incubator.apache.org Reply-To: issues@flink.incubator.apache.org References: In-Reply-To: Subject: [GitHub] flink pull request: [FLINK-1891]Add the input storageDirectory emp... Content-Type: text/plain Message-Id: <20150417134825.0FF6ADFF8B@git1-us-west.apache.org> Date: Fri, 17 Apr 2015 13:48:25 +0000 (UTC) X-Virus-Checked: Checked by ClamAV on apache.org Github user matadorhong commented on a diff in the pull request: https://github.com/apache/flink/pull/601#discussion_r28594789 --- Diff: flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobUtils.java --- @@ -64,15 +64,19 @@ * @return the storage directory used by a BLOB service */ static File initStorageDirectory(String storageDirectory) { - File baseDir = storageDirectory != null ? - new File(storageDirectory) : - new File(System.getProperty("java.io.tmpdir")); + File baseDir; + if (storageDirectory == null || storageDirectory.isEmpty()) { --- End diff -- Yeah, you are right. Thank for you notes.I have change it. --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. ---