Skip to content

[MINOR] Use direct marker for spark when timeline server is disabled#7272

Merged
leesf merged 1 commit intoapache:masterfrom
stream2000:fix_default_marker_type_for_spark
Nov 23, 2022
Merged

[MINOR] Use direct marker for spark when timeline server is disabled#7272
leesf merged 1 commit intoapache:masterfrom
stream2000:fix_default_marker_type_for_spark

Conversation

@stream2000
Copy link
Copy Markdown
Contributor

Change Logs

Currently the default marker type for spark is timeline-server based regardless of timeline server is disabled or not. This pr change the default marker type of spark engine to direct when timeline server is disabled

Impact

Default marker type of spark engine when timeline server is diabled

Risk level (write none, low medium or high below)

none

Documentation Update

N/A

Contributor's checklist

  • Read through contributor's guide
  • Change Logs and Impact were stated clearly
  • Adequate tests were added if applicable
  • CI passed

if (writeConfig.isEmbeddedTimelineServerEnabled()) {
return MarkerType.TIMELINE_SERVER_BASED.toString();
} else {
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.

@stream2000 stream2000 force-pushed the fix_default_marker_type_for_spark branch from f0e9adc to 8f7f9ff Compare November 22, 2022 03:46
@stream2000 stream2000 force-pushed the fix_default_marker_type_for_spark branch from 8f7f9ff to 71ee4c8 Compare November 22, 2022 06:09
@leesf
Copy link
Copy Markdown
Contributor

leesf commented Nov 22, 2022

@hudi-bot run azure

@hudi-bot
Copy link
Copy Markdown
Collaborator

CI report:

Bot commands @hudi-bot supports the following commands:
  • @hudi-bot run azure re-run the last Azure build

@leesf leesf merged commit 91e0db5 into apache:master Nov 23, 2022
leesf pushed a commit to leesf/hudi that referenced this pull request Nov 24, 2022
satishkotha pushed a commit to satishkotha/incubator-hudi that referenced this pull request Dec 12, 2022
fengjian428 pushed a commit to fengjian428/hudi that referenced this pull request Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants