You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@hive.apache.org by GitBox <gi...@apache.org> on 2023/01/06 22:04:10 UTC
[GitHub] [hive] cnauroth commented on a diff in pull request #3894: HIVE-26887 Make sure dirPath has the correct permissions
cnauroth commented on code in PR #3894:
URL: https://github.com/apache/hive/pull/3894#discussion_r1063820911
##########
ql/src/java/org/apache/hadoop/hive/ql/cache/results/QueryResultsCache.java:
##########
@@ -371,6 +371,9 @@ private QueryResultsCache(HiveConf configuration) throws IOException {
FsPermission fsPermission = new FsPermission("700");
fs.mkdirs(cacheDirPath, fsPermission);
+ if (!fsPermission.equals(fsPermission.applyUMask(FsPermission.getUMask(conf)))) {
+ fs.setPermission(cacheDirPath, fsPermission);
Review Comment:
Indentation is off on this line.
--
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.
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: gitbox-unsubscribe@hive.apache.org
For additional commands, e-mail: gitbox-help@hive.apache.org