[HUDI-4129] Initializes a new fs view for WriteProfile#reload (#5640)
Co-authored-by: zhangyuang <zhangyuang@corp.netease.com>
This commit is contained in:
@@ -256,7 +256,11 @@ public class WriteProfile {
|
||||
return;
|
||||
}
|
||||
this.metaClient.reloadActiveTimeline();
|
||||
this.fsView.sync();
|
||||
// release the old fs view and create a new one
|
||||
SyncableFileSystemView oldFsView = this.fsView;
|
||||
this.fsView = getFileSystemView();
|
||||
oldFsView.close();
|
||||
|
||||
recordProfile();
|
||||
cleanMetadataCache(this.metaClient.getCommitsTimeline().filterCompletedInstants().getInstants());
|
||||
this.smallFilesMap.clear();
|
||||
|
||||
Reference in New Issue
Block a user