I think this depends on the expected semantics of dynamic metadata. Since IMap already has a persistence route, maybe we should first consider whether dynamic metadata recovery can be aligned with that mechanism, rather than introducing a separate local snapshot recovery path.
A separate recovery path may be useful in some cases, but it can introduce another recovery source with different consistency behavior, so we would need to define restore ownership, stale data handling, and conflict behavior very clearly. So for this PR, I would prefer keeping IMap as the runtime metadata store and documenting the expected persistence limitations clearly. Best regards, Doyeon (Github ID: dybyte) On Fri, May 8, 2026 at 5:53 PM zhiwei niu <[email protected]> wrote: > 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 > > >
