Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
ad10b01
[Feature][Zeta] Add Web UI operation controls
davidzollo Jul 31, 2026
c782fdd
[Chore][Zeta] Apply spotless for web UI operation controls
DanielLeens Aug 18, 2026
c68a711
[Chore][Zeta] Retry flaky CI
DanielLeens Aug 19, 2026
37ca28b
[Fix][Zeta] Fix Web UI job test type check
DanielLeens Aug 20, 2026
6f6f36e
[Fix][Zeta] Resolve Web UI operation controls conflicts
davidzollo Aug 28, 2026
1d81588
[Fix][Zeta] Declare servlet test exception
davidzollo Sep 3, 2026
d7ffe81
Merge remote-tracking branch 'apache/dev' into davidzollo_11579-webui…
davidzollo Sep 15, 2026
0cae337
Merge remote-tracking branch 'apache/dev' into davidzollo_11579-webui…
davidzollo Sep 15, 2026
a947704
[Fix][Zeta] Harden Web UI operations
davidzollo Sep 15, 2026
696d028
Merge remote-tracking branch 'apache/dev' into davidzollo_11579-webui…
davidzollo Oct 9, 2026
5faae3e
[Fix][Zeta] Reject restore from active source jobs and document Web U…
davidzollo Oct 9, 2026
9272fba
[Chore][Zeta] Trigger CI for Web UI operation controls
davidzollo Oct 9, 2026
fc12053
[Chore][Zeta] Trigger CI after re-enabling fork workflows
davidzollo Oct 10, 2026
a125187
[Test][Zeta] Cover Web UI operation endpoints in the basic-auth E2E
davidzollo Oct 10, 2026
9dc0aed
[Test][Zeta] Prove the restore-source guard end to end and record it …
davidzollo Oct 10, 2026
b607bd5
[Chore][Zeta] Sync operations PR with latest dev
davidzollo Oct 22, 2026
4aba1e6
[Improve][Zeta] Gate checkpoint restore controls on terminal jobs
davidzollo Oct 22, 2026
379efa7
[Fix][Zeta] Validate structured member tag values
davidzollo Oct 25, 2026
117cf52
Merge branch 'dev' into davidzollo_11579-webui-operations
davidzollo Oct 25, 2026
816dfba
Merge branch 'dev' into zeta-webui-operations-11579
davidzollo Oct 28, 2026
e86481f
[Fix][Zeta] Resolve Web UI operation build failures
davidzollo Oct 28, 2026
bfd9bdd
Merge branch 'dev' into zeta-webui-operations-11579
davidzollo Oct 29, 2026
fb88079
Merge remote-tracking branch 'origin/dev' into pr13008-work
davidzollo Oct 31, 2026
c7f7680
[Feature][Zeta] Address review on Web UI operation controls
davidzollo Oct 31, 2026
f6358dc
[Fix][Zeta] Block tag updates for unrepresentable existing tags and d…
davidzollo Nov 2, 2026
69eb336
Merge branch 'dev' into zeta-webui-operations-11579
davidzollo Nov 3, 2026
d284cb5
[Improve][Zeta] Lift the tag-edit block after Clear Tags and document…
davidzollo Nov 10, 2026
21a5e41
Merge branch 'dev' into zeta-webui-operations-11579
davidzollo Nov 10, 2026
bb0165d
[Test][E2E] Use an available SFTP test image
DanielLeens Nov 16, 2026
15e7bc0
[Fix][Build] Reconcile Apache dev conflicts for PR #13008
DanielLeens Nov 22, 2026
59127ae
[Chore][Zeta] Sync operations PR with latest dev
DanielLeens Nov 28, 2026
997bfc3
[Fix][Zeta] Guard operations REST and batch restore
DanielLeens Nov 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ jobs:
translation-spark: ${{ steps.filter.outputs.translation-spark }}
run-engines: ${{ steps.run-engines.outputs.engines || '["flink","spark","zeta"]' }}
engine: ${{ steps.filter.outputs.engine }}
ui: ${{ steps.filter.outputs.ui }}
engine-e2e: ${{ steps.filter.outputs.engine-e2e }}
edge-agent: ${{ steps.filter.outputs.edge-agent }}
edge-agent-e2e: ${{ steps.filter.outputs.edge-agent-e2e }}
Expand Down Expand Up @@ -271,6 +272,12 @@ jobs:
file_list=${engine_files#*$'\n'}
echo "engine=$true_or_false" >> $GITHUB_OUTPUT
echo "engine_files=$file_list" >> $GITHUB_OUTPUT

ui_files=`python tools/update_modules_check/check_file_updates.py ua $workspace apache/dev origin/$current_branch "seatunnel-engine/seatunnel-engine-ui/**"`
true_or_false=${ui_files%%$'\n'*}
file_list=${ui_files#*$'\n'}
echo "ui=$true_or_false" >> $GITHUB_OUTPUT
echo "ui_files=$file_list" >> $GITHUB_OUTPUT

deleted_poms_files=`python tools/update_modules_check/check_file_updates.py d $workspace apache/dev origin/$current_branch "**/pom.xml"`
true_or_false=${deleted_poms_files%%$'\n'*}
Expand Down Expand Up @@ -646,7 +653,7 @@ jobs:
npm run build

seatunnel-ui:
if: needs.changes.outputs.api == 'true'
if: needs.changes.outputs.api == 'true' || needs.changes.outputs.ui == 'true'
needs: [ changes, sanity-check ]
name: Build SeaTunnel UI
runs-on: ubuntu-latest
Expand Down
149 changes: 142 additions & 7 deletions docs/en/engines/zeta/rest-api-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,9 @@ starting beyond the end of the result set also returns `400`, while a page start
```json
[
{
"uuid":"4f1c8c53-8d9f-4f5c-b9cc-278f3bbd2d2a",
"localMember":true,
"tags":{"node":"worker-1"},
"processors":"8",
"physical.memory.total":"16.0G",
"physical.memory.free":"16.3M",
Expand Down Expand Up @@ -966,7 +969,7 @@ starting beyond the end of the result set also returns `400`, while a page start
]
```

Each member is asked in parallel and awaited against one shared deadline (`seatunnel.engine.health-metrics-timeout-seconds`, default `3` seconds). A member that does not answer in time is reported as `{"host": "10.0.0.1", "port": 5801, "error": "timeout"}`; members whose request dispatch or response fails are reported with the corresponding `error` marker.
Each member is asked in parallel and awaited against one shared deadline (`seatunnel.engine.health-metrics-timeout-seconds`, default `3` seconds). Every known member entry includes `uuid`, `localMember`, and its current string-valued `tags`, including entries with an `error` marker. A timeout entry also includes `host`, `port`, and `error: "timeout"`; dispatch and response failures carry the corresponding `error` marker. Tags are visible to anyone who can read this endpoint, including the member listener when enabled. Use tags only for non-secret scheduling metadata; never put credentials or tokens in them.


</details>
Expand Down Expand Up @@ -1172,6 +1175,10 @@ curl --location 'http://127.0.0.1:8080/submit-job/upload?restoreMode=CHECKPOINT&
> | jobId | optional | string | job id |
> | jobName | optional | string | job name |
> | isStartWithSavePoint | optional | string | if the job is started with save point |
> | restoreMode | optional | string | `NONE`, `SAVEPOINT`, or `CHECKPOINT` |
> | restoreSourceJobId | conditional | string | numeric source job ID; required for `CHECKPOINT`, or use `jobId` for `SAVEPOINT` |

The server preflights job IDs, restore parameters and source status, dry-run and legacy savepoint requirements, and config decryption for the whole batch before submitting any job. A failure in this preflight leaves all jobs unsubmitted. Submission itself is not transactional: a later config or runtime failure may leave earlier jobs running. A source-status lookup failure returns `500` with a retry message; an active restore source returns `400`.

#### Request Body

Expand Down Expand Up @@ -1429,12 +1436,15 @@ For more information about customize encryption, please refer to the documentati

### Update the tags of running node

<details><summary><code>POST</code><code><b>/update-tags</b></code><code>Because the update can only target a specific node, the current node's `ip:port` needs to be used for the update</code><code>(If the update is successful, return a success message)</code></summary>
<details><summary><code>POST</code><code><b>/update-tags</b></code><code>Updates the tags of the current REST node with the legacy flat-map request body</code><code>(If the update is successful, return a success message)</code></summary>


#### update node tags
##### Body
If the request parameter is a `Map` object, it indicates that the tags of the current node need to be updated
`/update-tags` keeps the legacy flat `Map` contract: every top-level key is a tag name and every value is that tag's value. String values are recommended; for compatibility, the server converts non-string values to strings (and null to an empty string) rather than rejecting them. Nested objects are converted using Java's map representation, not retained as objects. No key is reserved, so a key literally named `uuid` or `tags` is stored as an ordinary tag instead of being read as a target member or a nested tag map. The request always applies to the REST node that serves it; to target a specific node, send the request to that node's own REST address.

The legacy endpoint also remains available on the Hazelcast member REST listener, which does not inherit Jetty Basic Auth or mutual TLS. Restrict member-port access to trusted clients. Tag updates replace the entire map; concurrent edits may be overwritten.

```json
{
"tag1": "dev_1",
Expand All @@ -1451,7 +1461,8 @@ If the request parameter is a `Map` object, it indicates that the tags of the cu
```
#### remove node tags
##### Body
If the parameter is an empty `Map` object, it means that the tags of the current node need to be cleared
An empty flat `Map` clears every tag of the current REST node:

```json
{}
```
Expand Down Expand Up @@ -1486,6 +1497,77 @@ If the parameter is an empty `Map` object, it means that the tags of the current
```
</details>

### Update Local Member Tags

<details><summary><code>POST</code><code><b>/update-local-member-tags</b></code><code>Updates the tags of the REST node serving the request after validating the target member UUID</code><code>(If the update is successful, return a success message)</code></summary>

This is the endpoint the Web UI Workers page uses. It is additive: `/update-tags` and its flat-map contract are unchanged.

#### Authentication

`/update-local-member-tags` is available only on the Jetty HTTP listener and uses its configured Basic Auth and mutual TLS settings. It is not available on the Hazelcast member REST listener. The legacy `/update-tags` route remains available there; restrict member-port access to trusted clients.

#### Body

| Field | Required | Type | Description |
|--------|----------|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `uuid` | yes | string | Member UUID of the node that must serve this request. Read it from `/system-monitoring-information`, whose entries carry `uuid` and `localMember` for every cluster member. |
| `tags` | yes | object | Tag name to string value map that replaces the node's current tags. An empty object clears all tags. Non-string values are rejected. |

This is a whole-map, last-write-wins replacement. Re-read the member's current tags before editing; another writer's changes since that read may be overwritten.

```json
{
"uuid": "4f1c8c53-8d9f-4f5c-b9cc-278f3bbd2d2a",
"tags": {
"tag1": "dev_1",
"tag2": "dev_2"
}
}
```

Clear every tag of the node:

```json
{
"uuid": "4f1c8c53-8d9f-4f5c-b9cc-278f3bbd2d2a",
"tags": {}
}
```

#### Responses

```json
{
"status": "success",
"message": "update node tags done."
}
```

#### Request parameter exception

Each error is returned with HTTP status `400`. The shared REST exception filter prefixes `message` with the exception class name, so the exact text is `IllegalArgumentException: <explanation>`.

| Condition | `message` |
|--------------------------------------------------------------------|-----------------------------------------------------------------|
| The request body is empty | `IllegalArgumentException: Request body is empty.` |
| The request body is not a JSON object | `IllegalArgumentException: Invalid JSON format in request body.` |
| `uuid` is missing or does not match the node serving the request | `IllegalArgumentException: Target member uuid must match the REST node serving this request.` |
| `tags` is missing or is not a JSON object | `IllegalArgumentException: The tags field must be an object.` |
| Any value inside `tags` is not a string | `IllegalArgumentException: Tag values must be strings.` |

```json
{
"status": "fail",
"message": "IllegalArgumentException: Target member uuid must match the REST node serving this request."
}
```

#### Limitation

The UUID check is local to the node serving the request. When the REST address is a load balancer or reverse proxy that fronts several masters, only the member that happens to serve the request can be updated, and requests for every other member are rejected with the UUID mismatch error. Send the request to the target member's own REST address instead.
</details>

------------------------------------------------------------------------------------------

### Get Logs from All Nodes
Expand Down Expand Up @@ -1765,6 +1847,51 @@ More information about `Telemetry` can be found in the [Telemetry](telemetry.md)

</details>

### Get HTTP Service Status

<details>
<summary><code>GET</code> <code><b>/http-service/status</b></code> <code>(Return HTTP service runtime status.)</code></summary>

#### Response

Returns the HTTP service switches, configured ports, effective connector ports, context path, and authentication mode for the current node.
Sensitive values such as passwords, user names, and keystore or truststore paths are never returned.
The endpoint is registered on the same servlet context as every other REST endpoint, so it is protected by the same basic authentication and mutual TLS configuration.

| Field | Type | Description |
|-----------------------|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `httpEnabled` | boolean | Whether the REST service is enabled on this node (`http.enable-http`). |
| `httpsEnabled` | boolean | Whether HTTPS is enabled on this node (`http.enable-https`). |
| `contextPath` | string | Context path the REST endpoints are served under; `/` when none is configured. |
| `configuredHttpPort` | number | HTTP port from the configuration (`http.port`, default `8080`). |
| `configuredHttpsPort` | number | HTTPS port from the configuration (`http.https-port`, default `8443`). |
| `httpPort` | number | Port the active HTTP connector is bound to. It differs from `configuredHttpPort` when dynamic ports are enabled; it equals the configured port when no HTTP connector is active. |
| `httpsPort` | number | Port the active HTTPS connector is bound to, with the same fallback rule as `httpPort`. |
| `dynamicPortEnabled` | boolean | Whether the node may pick the next free port when the configured one is taken (`http.enable-dynamic-port`). |
| `portRange` | number | Size of the port range searched when dynamic ports are enabled (`http.port-range`). |
| `basicAuthEnabled` | boolean | Whether HTTP basic authentication is enforced on this node. |
| `mutualTlsEnabled` | boolean | Whether the active HTTPS connector requires a client certificate. This reflects the effective TLS context, not merely whether a trust store is configured. |

#### Response Example

```json
{
"httpEnabled": true,
"httpsEnabled": false,
"contextPath": "/",
"configuredHttpPort": 8080,
"configuredHttpsPort": 8443,
"httpPort": 8080,
"httpsPort": 8443,
"dynamicPortEnabled": false,
"portRange": 100,
"basicAuthEnabled": false,
"mutualTlsEnabled": false
}
```

</details>

### Get Job Checkpoint Overview

<details>
Expand Down Expand Up @@ -2039,8 +2166,16 @@ There is no dedicated `pause`, `resume` or `delete` endpoint. Use the existing j
| Goal | How |
|-----------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Pause a running job (stop now, resume later) | Call [`/stop-job`](#stop-a-job) with `isStopWithSavePoint: true`. The job stops and a savepoint of its current state is persisted. |
| Resume a paused job | Call [`/submit-job`](#submit-a-job) again with `isStartWithSavePoint: true`, the **same** `jobId` that was stopped, and the same job config. The job restores from its latest savepoint for that `jobId`. |
| Resume a paused job | Call [`/submit-job`](#submit-a-job) again with `restoreMode=SAVEPOINT`, `restoreSourceJobId=<stopped-job-id>`, and the same job config. The job restores from its latest savepoint for that source job. The legacy `isStartWithSavePoint: true` with the same `jobId` remains supported. |
| Delete a job | There is no delete endpoint. Stop the job with [`/stop-job`](#stop-a-job) if it is still running. Once a job reaches a finished state, its record is removed automatically after `history-job-expire-minutes` (default 1440 minutes) elapses -- see [History Job Expiry Configuration](separated-cluster-deployment.md#44-history-job-expiry-configuration). |

**Note:** `isStartWithSavePoint: true` requires `jobId` to be provided in the request; submitting
without a `jobId` in that case fails with `Please provide jobId when start with save point.`
**Note:** `CHECKPOINT` requires `restoreSourceJobId`; `SAVEPOINT` may use `jobId` when `restoreSourceJobId` is omitted. `isStartWithSavePoint: true` remains a legacy
shortcut and requires `jobId` to be provided in the request; submitting without a `jobId` in that
case fails with `Please provide jobId when start with save point.`

**Restore guard:** a `restoreMode` submission is refused with HTTP `400` while the source job has
not reached an end state (`FINISHED`, `FAILED`, `CANCELED` or `SAVEPOINT_DONE`), for example
`restoreSourceJobId=42 is still RUNNING; stop or cancel the source job before restoring from its checkpoint state`.
Stop, savepoint or cancel the source job first. If the source job's checkpoint or savepoint state
has already been cleaned up, the submission fails with
`No checkpoint found for jobId=..., restoreMode=..., restoreSourceJobId=...`.
Loading