smengcl commented on code in PR #4027:
URL: https://github.com/apache/ozone/pull/4027#discussion_r1063698706
##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/OFSPath.java:
##########
@@ -102,7 +108,12 @@ private void initOFSPath(URI uri, boolean endsWithSlash) {
// TODO: Make this configurable in the future.
volumeName = OFS_MOUNT_TMP_VOLUMENAME;
try {
- bucketName = getTempMountBucketNameOfCurrentUser();
+ if (conf.getBoolean(OZONE_OM_ENABLE_OFS_SHARED_TMP_DIR,
+ OZONE_OM_ENABLE_OFS_SHARED_TMP_DIR_DEFAULT)) {
+ bucketName = OFS_MOUNT_NAME_TMP;
Review Comment:
Do we want to make the shared temp bucket name configurable?
Right now the value of `OFS_MOUNT_NAME_TMP` happens to be `tmp`, but the
meaning of this constant is different. Perhaps define a new constant? Or make
it configurable later (file a jira for now).
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]