[HUDI-4448] Remove the latest commit refresh for timeline server (#6179)
This commit is contained in:
@@ -78,8 +78,7 @@ public class EmbeddedTimelineService {
|
||||
.serverPort(writeConfig.getEmbeddedTimelineServerPort())
|
||||
.numThreads(writeConfig.getEmbeddedTimelineServerThreads())
|
||||
.compress(writeConfig.getEmbeddedTimelineServerCompressOutput())
|
||||
.async(writeConfig.getEmbeddedTimelineServerUseAsync())
|
||||
.refreshTimelineBasedOnLatestCommit(writeConfig.isRefreshTimelineServerBasedOnLatestCommit());
|
||||
.async(writeConfig.getEmbeddedTimelineServerUseAsync());
|
||||
// Only passing marker-related write configs to timeline server
|
||||
// if timeline-server-based markers are used.
|
||||
if (writeConfig.getMarkersType() == MarkerType.TIMELINE_SERVER_BASED) {
|
||||
|
||||
@@ -359,11 +359,6 @@ public class HoodieWriteConfig extends HoodieConfig {
|
||||
.withDocumentation("Timeline archiving removes older instants from the timeline, after each write operation, to minimize metadata overhead. "
|
||||
+ "Controls whether or not, the write should be failed as well, if such archiving fails.");
|
||||
|
||||
public static final ConfigProperty<Boolean> REFRESH_TIMELINE_SERVER_BASED_ON_LATEST_COMMIT = ConfigProperty
|
||||
.key("hoodie.refresh.timeline.server.based.on.latest.commit")
|
||||
.defaultValue(true)
|
||||
.withDocumentation("Refresh timeline in timeline server based on latest commit apart from timeline hash difference. By default (true).");
|
||||
|
||||
public static final ConfigProperty<Long> INITIAL_CONSISTENCY_CHECK_INTERVAL_MS = ConfigProperty
|
||||
.key("hoodie.consistency.check.initial_interval_ms")
|
||||
.defaultValue(2000L)
|
||||
@@ -1105,10 +1100,6 @@ public class HoodieWriteConfig extends HoodieConfig {
|
||||
return getBoolean(FAIL_ON_TIMELINE_ARCHIVING_ENABLE);
|
||||
}
|
||||
|
||||
public boolean isRefreshTimelineServerBasedOnLatestCommit() {
|
||||
return getBoolean(REFRESH_TIMELINE_SERVER_BASED_ON_LATEST_COMMIT);
|
||||
}
|
||||
|
||||
public int getMaxConsistencyChecks() {
|
||||
return getInt(MAX_CONSISTENCY_CHECKS);
|
||||
}
|
||||
@@ -2514,11 +2505,6 @@ public class HoodieWriteConfig extends HoodieConfig {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder withRefreshTimelineServerBasedOnLatestCommit(boolean refreshTimelineServerBasedOnLatestCommit) {
|
||||
writeConfig.setValue(REFRESH_TIMELINE_SERVER_BASED_ON_LATEST_COMMIT, Boolean.toString(refreshTimelineServerBasedOnLatestCommit));
|
||||
return this;
|
||||
}
|
||||
|
||||
protected void setDefaults() {
|
||||
writeConfig.setDefaultValue(MARKERS_TYPE, getDefaultMarkersType(engineType));
|
||||
// Check for mandatory properties
|
||||
|
||||
Reference in New Issue
Block a user