keith-turner commented on code in PR #3083:
URL: https://github.com/apache/accumulo/pull/3083#discussion_r1042178260
##########
core/src/main/java/org/apache/accumulo/core/file/rfile/RFileOperations.java:
##########
@@ -129,7 +136,23 @@ protected FileSKVWriter openWriter(FileOptions options)
throws IOException {
String file = options.getFilename();
FileSystem fs = options.getFileSystem();
- outputStream = fs.create(new Path(file), false, bufferSize, (short) rep,
block);
+ if (options.dropCacheBehind) {
+ EnumSet<CreateFlag> set = EnumSet.of(CreateFlag.SYNC_BLOCK,
CreateFlag.CREATE);
+ outputStream = fs.create(new Path(file), FsPermission.getDefault(),
set, bufferSize,
Review Comment:
`block` is passed to the other call of fs.create(), but not this one. Is
there a method that supports that and the perms?
--
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]