Skip to content
This repository was archived by the owner on Mar 12, 2026. It is now read-only.

feat: impl DoNothing wal#1311

Merged
jiacai2050 merged 5 commits into
apache:mainfrom
jiacai2050:feat-dummy-data-wal
Nov 20, 2023
Merged

feat: impl DoNothing wal#1311
jiacai2050 merged 5 commits into
apache:mainfrom
jiacai2050:feat-dummy-data-wal

Conversation

@jiacai2050

@jiacai2050 jiacai2050 commented Nov 17, 2023

Copy link
Copy Markdown
Contributor

Rationale

In some deployments when latest data is allowed to lost, wal is not a required module.

Also, wal may cost too much resources if write throughput is high, by disable it, we can save those resources.

Detailed Changes

  • Add a DoNothing wal implementation
  • Introduce WalConfig, and add a new disable_data flag in it.
    • This Config wrap old StorageConfig, and use #[serde(flatten)] to keep backwards compatible.

Test Plan

Manually

Comment thread src/wal/src/config.rs Outdated

@Rachelint Rachelint left a comment

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.

LGTM

@jiacai2050 jiacai2050 merged commit 046cdd3 into apache:main Nov 20, 2023
@jiacai2050 jiacai2050 deleted the feat-dummy-data-wal branch November 20, 2023 07:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants