Hi Xuepeng, thanks for raising these design questions.

>From my understanding, using IMap as the runtime store for dynamic metadata
seems aligned with the current SeaTunnel Engine design.
Some important runtime states (for example, checkpoint-related state and
transient states like readyToCloseStartingTask) are already maintained in
IMap today.

For persistence, if metadata is stored in IMap, it may be reasonable to
build on IMap’s existing persistence path.
SeaTunnel already supports MapStore-based persistence (e.g., HDFS / OSS /
S3), for example:

map-store:
  enabled: true
  initial-mode: EAGER
  factory-class-name:
org.apache.seatunnel.engine.server.persistence.FileMapStoreFactory
  properties:
    type: hdfs
    namespace: xxx
    clusterName: xxx
    storage.type: s3
    s3.bucket: s3a://xxxx
    fs.s3a.endpoint: s3.xxxxx
    fs.s3a.access.key: xxxxxx
    fs.s3a.secret.key: xxxxx

Given this, it might be worth first evaluating whether the current
persistence/recovery flow already covers all dynamic metadata keys, and
clarifying the expected consistency and recovery semantics.
If gaps remain after that, we can further discuss whether an additional
transitional mechanism (such as local snapshot recovery) is still needed.

This is just my current understanding — happy to be corrected and discuss
further.

Best regards,
zhiwei.niu

xuepeng wang <[email protected]> 于2026年5月8日周五 15:09写道:

> Hi everyone,
>
> I want to discuss a design question related to dynamic metadata in PR
> #10838.
>
> Currently, the dynamic metadata is stored in Hazelcast IMAP. This works
> well for runtime metadata sharing across the cluster, but it also
> introduces a persistence concern: when the SeaTunnel cluster restarts, the
> IMAP state will be reinitialized and the metadata will be lost.
>
> Although metadata persistence is not included in this PR, I think we still
> need to clarify the architectural direction first.
>
> Some questions I would like to discuss:
>
>    1.
>
>    Is IMAP the right place to store dynamic metadata as the runtime
>    metadata store?
>    2.
>
>    If metadata is stored in IMAP, should metadata persistence rely on IMAP
>    persistence capabilities in the future?
>    3.
>
>    Since the current IMAP persistence route may take some time, would it
>    make sense to introduce a lightweight transitional solution for metadata
>    recovery, such as local snapshot files used only for restoring metadata
>    during cluster restart?
>
> My current thought is:
>
>    -
>
>    IMAP remains the runtime metadata store
>    -
>
>    Snapshot/file recovery is only a temporary recovery mechanism
>    -
>
>    This mechanism would not provide strong consistency guarantees
>    -
>
>    Future IMAP native persistence could gradually replace the snapshot
>    recovery approach
>
> I’d like to hear more opinions about whether this architectural direction
> makes sense.
>
>
> xuepeng
>

Reply via email to