You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature] Add a global monotonically increasing timestamp service (TSO) for incremental computation in Doris #61198
I had searched in the issues and found no similar issues.
Description
Doris is introducing incremental computation capabilities in #57921, including table stream, dynamic table, incremental runtime, and optimizer support. To support these components consistently across the cluster, Doris needs a global timestamp service that can generate monotonically increasing, globally ordered timestamps.
This TSO service can be used as a unified progress/version marker for incremental batches, CDC events, stream operators, and incremental materialized view refresh. It helps different FE/BE nodes reason about ordering and progress in a deterministic way, instead of relying only on local machine clocks.
A TSO-like design has been widely used in distributed systems, where a centralized timestamp oracle allocates globally ordered timestamps using a physical time part plus a logical counter part.
Use case
Provide globally ordered versions for table stream / Binlog
Mark incremental MV refresh boundaries
Support deterministic ordering for distributed stream join / aggregation
Related issues
This feature mainly solves the lack of a reliable cluster-wide ordering mechanism in distributed incremental computation. Local clocks are not sufficient to establish a strict global order across nodes. A TSO service provides a single monotonic timeline for change processing, operator progress, state advancement, and incremental refresh.
It is suitable for table stream, dynamic table, incremental runtime, asynchronous MV refresh, distributed stream processing, and other internal components introduced by #57921.
Activity
[feature](tso) Add global monotonically increasing Timestamp Oracle(T…
[feature](tso) Add global monotonically increasing Timestamp Oracle(T…