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
