Skip to content
Merged
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 @@ -2794,7 +2794,12 @@ public HoodieWriteConfig build() {
private String getDefaultMarkersType(EngineType engineType) {
switch (engineType) {
case SPARK:
return MarkerType.TIMELINE_SERVER_BASED.toString();
if (writeConfig.isEmbeddedTimelineServerEnabled()) {
return MarkerType.TIMELINE_SERVER_BASED.toString();
} else {
LOG.warn("Embedded timeline server is disabled, fallback to use direct marker type for spark");
return MarkerType.DIRECT.toString();
Copy link
Copy Markdown
Contributor

@leesf leesf Nov 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could log.warn here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logic of turning off the timeline-server-based markers is already covered by WriteMarkersFactory.

}
case FLINK:
case JAVA:
// Timeline-server-based marker is not supported for Flink and Java engines
Expand Down