Commit 743e6f1
[Improvement]: Refactor process API and table runtime extension interfaces (#4097)
* improvement: refactor process API and table runtime extension interfaces
# Context
Split from upstream PR #4081 to make review easier.
This MR introduces the new process extension APIs in common module, without touching most AMS internals yet.
# Changes
- Promote `ProcessFactory` to a richer abstraction in `amoro-common`, preparing for plugin-based table process extension.
- Adjust `Action`/`IcebergActions` and `TableRuntime` to align with the new process model.
- Move `ActionCoordinator` into `amoro-common` so it can be shared as a public abstraction.
- Introduce `ProcessTriggerStrategy` to describe trigger policies for processes.
- Clean up legacy process state classes which will be replaced by the new abstractions in follow-up MRs.
# Notes
- This commit only updates the common module and the shared `ActionCoordinator` API; AMS-side wiring and runtime refactors will be done in separate branches/MRs as discussed.
Co-Authored-By: Aime <aime@bytedance.com>
Change-Id: If84ada8fcae1cfb11577d56d3866db7ce0949102
* fix compile error
* fix compile error
* fix compile error3
* getTableConfig
* refactor
---------
Co-authored-by: zhangyongxiang.alpha <zhangyongxiang.alpha@bytedance.com>
Co-authored-by: Aime <aime@bytedance.com>1 parent 853562e commit 743e6f1
22 files changed
Lines changed: 285 additions & 948 deletions
File tree
- amoro-ams/src
- main/java/org/apache/amoro/server
- persistence/mapper
- process
- scheduler
- table
- test/java/org/apache/amoro/server/process
- amoro-common/src/main/java/org/apache/amoro
- process
- table
Lines changed: 0 additions & 87 deletions
This file was deleted.
Lines changed: 5 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
98 | | - | |
99 | | - | |
| 101 | + | |
| 102 | + | |
100 | 103 | | |
101 | 104 | | |
102 | 105 | | |
| |||
110 | 113 | | |
111 | 114 | | |
112 | 115 | | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | 116 | | |
124 | 117 | | |
125 | 118 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
242 | 243 | | |
243 | 244 | | |
244 | 245 | | |
245 | | - | |
| 246 | + | |
246 | 247 | | |
247 | 248 | | |
248 | 249 | | |
| |||
Lines changed: 0 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
189 | 188 | | |
190 | 189 | | |
191 | 190 | | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
210 | | - | |
211 | 191 | | |
212 | 192 | | |
213 | 193 | | |
| |||
0 commit comments