[HUDI-895] Remove unnecessary listing .hoodie folder when using timeline server (#1636)
This commit is contained in:
committed by
GitHub
parent
25a0080b2f
commit
3c9da2e5f0
@@ -540,10 +540,8 @@ public class HoodieWriteClient<T extends HoodieRecordPayload> extends AbstractHo
|
||||
HoodieTimeline.compareTimestamps(latestPending.getTimestamp(), HoodieTimeline.LESSER_THAN, instantTime),
|
||||
"Latest pending compaction instant time must be earlier than this instant time. Latest Compaction :"
|
||||
+ latestPending + ", Ingesting at " + instantTime));
|
||||
HoodieTable<T> table = HoodieTable.create(metaClient, config, hadoopConf);
|
||||
HoodieActiveTimeline activeTimeline = table.getActiveTimeline();
|
||||
String commitActionType = table.getMetaClient().getCommitActionType();
|
||||
activeTimeline.createNewInstant(new HoodieInstant(State.REQUESTED, commitActionType, instantTime));
|
||||
metaClient.getActiveTimeline().createNewInstant(new HoodieInstant(State.REQUESTED, metaClient.getCommitActionType(),
|
||||
instantTime));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -231,21 +231,21 @@ public abstract class HoodieTable<T extends HoodieRecordPayload> implements Seri
|
||||
* Get the base file only view of the file system for this table.
|
||||
*/
|
||||
public BaseFileOnlyView getBaseFileOnlyView() {
|
||||
return getViewManager().getFileSystemView(metaClient.getBasePath());
|
||||
return getViewManager().getFileSystemView(metaClient);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the full view of the file system for this table.
|
||||
*/
|
||||
public SliceView getSliceView() {
|
||||
return getViewManager().getFileSystemView(metaClient.getBasePath());
|
||||
return getViewManager().getFileSystemView(metaClient);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get complete view of the file system for this table with ability to force sync.
|
||||
*/
|
||||
public SyncableFileSystemView getHoodieView() {
|
||||
return getViewManager().getFileSystemView(metaClient.getBasePath());
|
||||
return getViewManager().getFileSystemView(metaClient);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user