xiarixiaoyao commented on a change in pull request #3183:
URL: https://github.com/apache/hudi/pull/3183#discussion_r661075620
##########
File path:
hudi-common/src/main/java/org/apache/hudi/common/util/collection/DiskBasedMap.java
##########
@@ -111,8 +111,14 @@ private void initFile(File writeOnlyFile) throws
IOException {
if (writeOnlyFile.exists()) {
writeOnlyFile.delete();
}
- if (!writeOnlyFile.getParentFile().exists()) {
- writeOnlyFile.getParentFile().mkdir();
+ File parentDir = writeOnlyFile.getParentFile();
+ if (!parentDir.exists()) {
+ parentDir.mkdir();
+ // we should set all right for other user.
Review comment:
@leesf sorry, i think it's hard to simulate different users, since we
have no right to create a new user in linux(Linux permission problem). hope you
can give me some advice
--
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]