Skip to content

[SUPPORT] What's the difference between compaction service and log compaction service #12190

@bithw1

Description

@bithw1

HI,

I am reading Hudi 0.15.0 source code, find there are two compaction inline options, one is hoodie.compact.inline,the other is hoodie.log.compaction.inline,

Both of them say that the compaction/log compaction service will be triggered after each write, I would ask what't the difference between these two services.

The defintion of the two options are as follows:

  public static final ConfigProperty<String> INLINE_COMPACT = ConfigProperty
      .key("hoodie.compact.inline")
      .defaultValue("false")
      .withDocumentation("When set to true, compaction service is triggered after each write. While being "
          + " simpler operationally, this adds extra latency on the write path.");

and

  public static final ConfigProperty<String> INLINE_LOG_COMPACT = ConfigProperty
      .key("hoodie.log.compaction.inline")
      .defaultValue("false")
      .markAdvanced()
      .sinceVersion("0.13.0")
      .withDocumentation("When set to true, log compaction service is triggered after each write. While being "
          + " simpler operationally, this adds extra latency on the write path.");

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions