You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@carbondata.apache.org by GitBox <gi...@apache.org> on 2020/10/13 12:52:09 UTC

[GitHub] [carbondata] marchpure commented on a change in pull request #3974: [Carbondata-3999] Fix permission issue of indexServerTmp directory

marchpure commented on a change in pull request #3974:
URL: https://github.com/apache/carbondata/pull/3974#discussion_r503924292



##########
File path: core/src/main/java/org/apache/carbondata/core/util/CarbonUtil.java
##########
@@ -3250,14 +3250,14 @@ public static String getIndexServerTempPath() {
   public static CarbonFile createTempFolderForIndexServer(String queryId)
           throws IOException {
     final String path = getIndexServerTempPath();
+    if (!FileFactory.isFileExist(path)) {
+      // Create the new index server temp directory if it does not exist
+      LOGGER.info("Creating Index Server temp folder:" + path);
+      FileFactory
+              .createDirectoryAndSetPermission(path,
+                      new FsPermission(FsAction.ALL, FsAction.ALL, FsAction.ALL));

Review comment:
       The code format is stranage




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org