Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ public static HoodieRecord generateHoodieRecord(HoodieKey hoodieKey, FileSlice f
return hoodieRecord;
}

private static boolean shouldLoadFile(String fileId,
protected boolean shouldLoadFile(String fileId,
int maxParallelism,
int parallelism,
int taskID) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,10 @@ public void processElement(StreamRecord<I> element) throws Exception {
// send the trigger record
output.collect((StreamRecord<O>) element);
}

@Override
protected boolean shouldLoadFile(String fileId, int maxParallelism, int parallelism, int taskID) {
// load all the file groups in the partition
return true;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public static void createProperties(
FileSystemViewStorageConfig config) throws IOException {
Path propertyPath = getPropertiesFilePath(basePath);
FileSystem fs = FSUtils.getFs(basePath, StreamerUtil.getHadoopConf());
fs.delete(propertyPath, false);
try (FSDataOutputStream outputStream = fs.create(propertyPath)) {
config.getProps().store(outputStream,
"Filesystem view storage properties saved on " + new Date(System.currentTimeMillis()));
Expand Down