Thanks, I think your point is that the abstraction should document the
expected consistency and atomicity contracts that Hazelcast IMap currently
provides implicitly.
I’ll add a rough contract section for each state-store category, such as
runtime control state, counters, metrics snapshots, and history.

For migration, my current plan is to proceed incrementally by state-store
type.

The goal at this stage is not to change the backend or runtime behavior,
but to make the state boundaries explicit.

On Sun, Apr 26, 2026 at 11:18 PM David Zollo <[email protected]>
wrote:

> Hi Doyeon,
>
> Thanks for the well-structured proposal. The direction makes a lot of
> sense to me.
>
> The current situation where all IMap usages are treated uniformly
> regardless of their actual semantics — whether it's runtime control
> state, metrics snapshots, or historical job records — does make the
> engine harder to evolve. Introducing a typed abstraction layer like
> `EngineStateStores` with distinct interfaces (`RuntimeStateStore`,
> `CounterStateStore`, etc.) is a clean way to make those boundaries
> explicit without requiring a big-bang rewrite.
>
> I especially appreciate that the scope is intentionally limited to
> establishing the abstraction boundary first, leaving the actual wiring
> and backend choices (Ratis, Pekko, etc.) for later iterations. That's
> the right way to approach this kind of foundational refactoring.
>
> A few things worth thinking about as the design evolves:
>
> - How will the abstraction handle the consistency guarantees that
> Hazelcast IMap currently provides implicitly? Even if we're not
> solving that now, it would be good to document the assumptions so
> future implementations know what contracts they need to fulfill.
> - Is there a plan for how existing Hazelcast-backed code will be
> migrated incrementally? Even a rough migration path in the issue would
> help reviewers understand the full scope.
>
> Overall +1 on the direction.
>
>
> Best Regards,
> David
> Linkedin: https://www.linkedin.com/in/davidzollo
>
> On Wed, Apr 22, 2026 at 10:14 PM xuepeng wang <[email protected]> wrote:
> >
> > +1
> >
> > Doyeon Kim <[email protected]> 于2026年4月22日周三 22:02写道:
> >
> > > Hi everyone,
> > >
> > > I’d like to start a discussion on [STIP-26]:
> > >
> > > *[STIP-26][Feature][Zeta] Decouple Hazelcast IMap via StateStore
> > > Abstraction*
> > > https://github.com/apache/seatunnel/issues/10804
> > >
> > > This proposal introduces an initial statestore abstraction layer under
> > > common/statestore to reduce direct Hazelcast IMap dependencies inside
> the
> > > SeaTunnel engine.
> > >
> > > The key point is that this is intended as a *first-step boundary*, not
> a
> > > full distributed-system redesign.
> > > At this stage, the proposal focuses on:
> > >
> > >    -
> > >
> > >    engine-facing state-store interfaces
> > >    -
> > >
> > >    initial implementations behind those interfaces
> > >    -
> > >
> > >    clearer separation of state responsibilities by semantics
> > >
> > > It does not attempt to complete product-code wiring yet. That part is
> > > expected to happen incrementally later.
> > >
> > > The motivation is that current IMap usages represent different kinds of
> > > state, such as runtime control state, counters, metrics snapshots, and
> > > finished-job history. Treating all of them through direct
> > > Hazelcast-specific access makes future evolution harder and does not
> > > clearly reflect their different consistency requirements.
> > >
> > > To address that, this STIP proposes:
> > >
> > >    -
> > >
> > >    a top-level EngineStateStores
> > >    -
> > >
> > >    separation between authoritative and auxiliary state
> > >    -
> > >
> > >    state-specific interfaces such as RuntimeStateStore,
> CounterStateStore,
> > >    MetricsSnapshotStateStore, and HistoricalStateStore
> > >
> > > The proposal is intentionally scoped to avoid solving everything at
> once.
> > > It does not try to finalize Ratis, Pekko, leader election, or the final
> > > persistence model in this stage.
> > >
> > > I’d appreciate feedback on whether this direction and scope look
> > > reasonable.
> > >
> > > Best Regards, Doyeon (Github ID: dybyte)
> > >
>

Reply via email to