Skip to content
Permalink
Browse files
[HUDI-4129] Initializes a new fs view for WriteProfile#reload (#5640)
Co-authored-by: zhangyuang <zhangyuang@corp.netease.com>
  • Loading branch information
YuangZhang and zhangyuang committed May 23, 2022
1 parent 271d1a7 commit 3ef137d1565dd1aa21456d06c52b930337987c5b
Showing 1 changed file with 5 additions and 1 deletion.
@@ -256,7 +256,11 @@ public synchronized void reload(long checkpointId) {
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();

0 comments on commit 3ef137d

Please sign in to comment.