Skip to content

[Fix][Zeta] Validate task status report location wire types - #13294

Open
CryoThrust wants to merge 3 commits into
apache:devfrom
CryoThrust:fix/task-report-location-wire-type
Open

CryoThrust wants to merge 3 commits into
apache:devfrom
CryoThrust:fix/task-report-location-wire-type

Conversation

@CryoThrust

@CryoThrust CryoThrust commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Purpose of this pull request

I am contributing this task-status report validation fix to Apache SeaTunnel. Fixes #13293.

The report reader checks the outer location's serializer type, IDS flag, factory ID and class ID before readObject(TaskLocation.class). Absolute reads preserve the input cursor and byte order; unsupported non-buffered inputs fail closed. Errors include the concrete operation and observed input/header identity.

It also rejects a null report status during decoding. Previously that malformed value reached the coordinator's ConcurrentHashMap.put, failed, and entered the operation retry path. Valid status values and encoding are unchanged.

The admission guarantee is top-level location identity plus a non-null status, not arbitrary object-graph safety: nested TaskGroupLocation and non-null status objects still use their existing serializers. Writers, serializer IDs and normal retry behavior are unchanged. The separate task/split-operation follow-up remains in #12748.

Verification

JDK 11, latest local revision:

  • The new null-status case fails on the previous head because malformed data is accepted, then passes after decode rejection. Existing class-named regression now asserts the specific IDS diagnostic as well as zero constructor/readData effects.
  • Eight report-operation cases pass, including every valid task state and byte-identical re-encoding in both byte orders. With three neighboring serialization suites: 26 cases, zero failures/errors, one existing checkpoint-test skip. Scoped Spotless and server verify pass.
  • RecordSerializerIT passes all eight cases across two real embedded SeaTunnel members. The report case covers all valid states and exact location/status/re-encoded bytes.
  • The existing idle-reader master-failover case passes on two masters and one worker, preserving task-ID, checkpoint and output-row assertions. Its task-ID assertion is explicitly a valid-path guard; the private-plan lookup now has a diagnostic if the field disappears. The two selected integration suites total nine passing cases, no failures/errors/skips.
./mvnw -pl seatunnel-engine/seatunnel-engine-server \
  -Dtest=TaskReportStatusOperationSerializationTest,RecordSerializerTest,ResourceDataSerializerHookTest,CheckpointSerializeTest verify
./mvnw -pl seatunnel-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base \
  -DskipUT -DskipIT=false \
  '-Dit.test=RecordSerializerIT,CheckpointCoordinatorFailoverIT#testCheckpointCompletesAfterMasterFailoverWithIdleClosedReader' verify

Dependencies were installed before these checks. Integration test JVMs used two CPUs/2 GiB. This is scoped verification, not a full-repository or mixed-version-cluster pass. Previous-head hosted results do not verify this update.

Compatibility

No configuration, valid wire bytes, checkpoint/savepoint format, dependency or migration changes. Malformed null statuses fail earlier; normal report handling remains unchanged. EN/ZH configuration guides are unaffected.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for keeping this follow-up focused on the task status operation. I checked its producer, serializer registration, coordinator consumer, and both test levels.

What problem does this PR solve?

The checkpoint coordinator needs a task's identity when a worker reports readiness. The old reader could construct the expected type despite a different registered wire type. For instance, a report that decodes to a different object is now rejected before any task status entry is written. Valid reports behave as before.

1. Code changes

1.1 Core logic

SeaTunnelTask, SourceSplitEnumeratorTask and SinkAggregatedCommitterTask report WAITING_RESTORE and READY_START -> AbstractTask.reportTaskStatus:108-111 sends TaskReportStatusOperation to the master -> the checkpoint serializer hook reconstructs operation ID 4 -> TaskReportStatusOperation.readInternal:64-79 decodes the location and state -> runInternal:83-98 invokes CheckpointManager.reportedTask -> CheckpointCoordinator records the original task ID (line 325) and gates readiness on the planned set size and states (459-468). Previously: location = in.readObject(TaskLocation.class). Now: Object decodedLocation = in.readObject() followed by an instanceof TaskLocation check. Cross-member startup and restore reports exercise the new path; malformed reports stop before the coordinator runs.

1.2 Compatibility

Compatible for valid old and new reports: write order, Hazelcast IDs, the TaskLocation layout, state values, public configuration and checkpoint/savepoint bytes are unchanged. Rejecting an invalid type or reporting clearer null handling is limited to malformed traffic.

1.3 Performance and side effects

An instanceof check at a lifecycle transition, without a per-row change, added network exchange, synchronization, resource, or retry. The same coordinator retry logic handles valid reports; the new check runs before it.

1.4 Errors, logging, and findings

The IOException identifies the expected and actual types without dumping message contents. Failure is visible at the operation boundary rather than changing the task map. No source blocker found.

2. Code quality

2.1 Conventions

The note on the typed overload explains the non-obvious change at the reader. Operation registration and factory IDs are untouched.

2.2 Test coverage and stability

Stability: stable on static inspection. The unit test uses real serialization and exact location/status/bytes, disposes its service, and does not rely on timing (TaskReportStatusOperationSerializationTest.java:48-104). The engine IT polls the running job and exact task ID set before changing master (CheckpointCoordinatorFailoverIT.java:683-713) and retains the original completed-checkpoint and row-count assertions. The new check uses neither a hard sleep nor a fixed port. The round trip uses the unchanged current writer; it is not a mixed-version cluster run.

2.3 Documentation

No user-facing feature or setting changes; EN/ZH configuration and upgrade docs need no change.

3. Architecture

3.1 Change location

A precise fix at the individual message reader: that reader owns the expected field type. A global Hazelcast reader change would have a broader compatibility burden.

3.2 Maintainability

Validation sits beside the read/write pair and the failure names the field.

3.3 Extensibility

Related readers can be assessed separately under their own wire contracts; this patch needs no shared abstraction.

3.4 Upgrade impact

Successful old reports have the same IDs and field layout. The reader change does not migrate checkpoint state.

4. Findings summary

# Finding Location Severity
- No new source blocker found - -

5. Merge recommendation

Do not merge before current-head CI passes.

Blocking items: No source blocker found; current-head engine unit and integration checks and repository approval remain.

Non-blocking suggestions: None.

The scoped change preserves the actual worker-to-master contract; I would keep the adjacent legacy readers separate.

CI and repository state: no check reported in the Apache rollup; Build: queued. GitHub reports BLOCKED / REVIEW_REQUIRED.

Verification: Reviewed all changed files and the referenced call sites at 351f3b4a4405bcdfe826a75ed4003bbb385e47e9 against merge base 50e8a0d30db53b6be77509fee8873a2439716171. git diff --check passed. I did not build, run tests, or execute SeaTunnel locally.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CI fact in my previous review has changed on unchanged 351f3b4a4405bcdfe826a75ed4003bbb385e47e9: fork Build 44038790790 is now successful, rather than queued/in progress. No source blocker remained in my earlier review. The current Apache check rollup still reports no Build, so a write-capable maintainer must reconcile/adopt the successful fork result and provide effective approval.

This updates the earlier gate statement; it is not another complete source review or a new source finding. Daniel has READ repository permission, so this COMMENT does not change the effective write-level approval/dismissal gate. No local PR build or test was run.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for following this through! The CI fact in my previous review has changed on this unchanged head: the exact-head Build is successful and Apache now reports a successful Build too. I checked the final job manifest: no failed, cancelled or incomplete jobs remain. My previous complete review had no unresolved source blocker; the remaining technical blocker was CI/check adoption. That CI-only blocker is now cleared, so I am changing my technical review to approve.

Conclusion: Can merge from Daniel's technical perspective once the effective repository review gate is satisfied.

Blocking source items: None from my existing complete review.

Non-blocking suggestions: Those already recorded remain optional. This is a CI/discussion follow-up, not another full source review. Daniel's READ permission does not provide write-level approval/dismissal controls or prove that historical requested changes have disappeared. A write-capable maintainer must handle the remaining effective gate.

Checked unchanged head 351f3b4a4405bcdfe826a75ed4003bbb385e47e9 against dev: compare diverged, ahead 1 / behind 39. This drift is recorded independently; it does not by itself request synchronization. This is a discussion/CI follow-up, not another full source review. No local build, test or runtime execution was performed. Daniel has READ repository permission; effective maintainer approval/dismissal remains a separate repository gate. Checked 2026-11-21T11:49:26.872558+00:00.

@CryoThrust

Copy link
Copy Markdown
Contributor Author

I have temporarily put this PR back in draft while applying the decode-boundary correction identified in #12748. This report reader has the same post-materialization type check: a wrong class can be initialized before instanceof rejects it. The successful CI on the current head does not establish admission-before-construction. I am adding that regression and constraining the decoder while preserving valid report bytes. The existing status/report scope remains separate; no new competing PR is planned.

@CryoThrust
CryoThrust marked this pull request as ready for review November 25, 2026 07:26
@CryoThrust

CryoThrust commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor Author

The admission-before-construction correction is now pushed. The report reader validates the serializer/IDS/factory/class header before the constrained TaskLocation read. Real Hazelcast tests confirm that unexpected class-named and registered-factory payloads run neither their constructor nor readData; the new constructor regression fails on the previous head.

All seven operation cases pass. Server verification totals 26 cases with zero failures/errors and one existing skip. The two-member report transfer test and the existing three-member idle-reader master-failover test also pass: nine integration cases, no failures/errors/skips. Valid report bytes, every task state and the existing exact task-ID/checkpoint/output assertions are preserved. The PR description has the current scope and portable commands, and the PR is ready for review.

CI update on unchanged a9cf75d6994f368a471c145c6d0d4bda6d17c00f: fork Build 45568028297 completed with one failed job out of 97, jdbc-connectors-it-part-7 (17, ubuntu-latest). Its complete log shows Maven Wrapper's JAR download returning HTTP 429 on all five attempts (5/10/20/40-second backoff), then MavenWrapperMain failing to load. No Surefire/Failsafe reports were produced: that job never reached its tests. The hosted run remains failed; no source or CI workaround was made to bypass it.

@SEZ9 SEZ9 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this. I reviewed the latest head a9cf75d6994f.

What this PR fixes

  • User pain: On the master, TaskReportStatusOperation decoded its location with in.readObject(TaskLocation.class). Per the PR description (Hazelcast's source is not in this checkout, so I could not confirm it there), that typed reader builds a TaskLocation without checking the factory/class ID on the wire. A report whose location slot carries another type is therefore not rejected on its identity. This is a hardening gap for malformed inter-node packets, not a failure that valid jobs hit.
  • Fix approach: TaskReportStatusOperation.readInternal now requires a BufferObjectDataInput and peeks the 13-byte Hazelcast header at the current position with absolute reads: serializer type, identified flag bit, factory ID and class ID (TaskReportStatusOperation.java:72-105). It throws IOException unless the header names TaskDataSerializerHook.FACTORY_ID / TASK_LOCATION_TYPE, then keeps the original in.readObject(TaskLocation.class) on line 106. The status read on line 107, writeInternal, and the serializer IDs are unchanged, so valid peers stay wire-compatible.
  • Tests: a new TaskReportStatusOperationSerializationTest covers valid round trips in both byte orders and five malformed-location cases. RecordSerializerIT gains a two-member round trip for every SeaTunnelTaskState. CheckpointCoordinatorFailoverIT gains an assertion that the reported task IDs match the checkpoint plan.
  • What remains open: the guard covers only the outer location identity. The nested TaskGroupLocation and the status field are still untyped reads, a null status is still accepted, and the new error messages carry little diagnostic context.

Runtime chain I rechecked

Worker side (sender, unchanged by this PR)
  SeaTunnelTask.stateProcess()  SeaTunnelTask.java:261
    case INIT            -> reportTaskStatus(WAITING_RESTORE)  SeaTunnelTask.java:265
    case WAITING_RESTORE -> reportTaskStatus(READY_START)      SeaTunnelTask.java:273
    (same pattern: SourceSplitEnumeratorTask.java:321/326, SinkAggregatedCommitterTask.java:141/146)
  -> AbstractTask.reportTaskStatus(status)  AbstractTask.java:108
       sendToMaster(new TaskReportStatusOperation(taskLocation, status)).join()  AbstractTask.java:109-111
  -> TaskExecutionContext.sendToMaster()  TaskExecutionContext.java:52
  -> NodeEngineUtil.sendOperationToMasterNode()  NodeEngineUtil.java:32-42
  -> TaskReportStatusOperation.writeInternal()  TaskReportStatusOperation.java:63-67
       TracingOperation.writeInternal() writes the MDC context string  TracingOperation.java:49-52
       out.writeObject(location); out.writeObject(status)

Master side (receiver, changed by this PR)
  TaskReportStatusOperation.readInternal()  TaskReportStatusOperation.java:70-108
    TracingOperation.readInternal() reads the MDC context  TracingOperation.java:55-58
    [new] reject any input that is not a BufferObjectDataInput  :72-76
    [new] peek at the current position without moving the cursor  :78-105
          serializer type must be CONSTANT_TYPE_DATA_SERIALIZABLE  :81-88
          identified flag (bit 0) must be set  :90-93
          factory ID / class ID must be TaskDataSerializerHook.FACTORY_ID / TASK_LOCATION_TYPE  :94-105
    location = in.readObject(TaskLocation.class)  :106
      -> TaskLocation.readData(): taskGroupLocation = in.readObject() (untyped)  TaskLocation.java:108
    status = in.readObject() (untyped, null accepted)  :107
  -> TaskReportStatusOperation.runInternal()  :111-127
       RetryUtils.retryWithException(..., retry on any exception, 30 attempts, 2000 ms sleep)
  -> CheckpointManager.reportedTask()  CheckpointManager.java:304-312
  -> CheckpointCoordinator.reportedTask()  CheckpointCoordinator.java:324-348
       pipelineTaskStatus.put(taskID, status) on a ConcurrentHashMap  :325
       WAITING_RESTORE -> restoreTaskState(location)
       READY_START     -> allTaskReady()  :458-483 (size gate on line 459, then notifyTaskStart())

Findings

Issue 1: The header check stops at the outer 13 bytes: the nested taskGroupLocation and the status field are still decoded by untyped readObject() calls, so a wire-selected class is still materialized one read later.

  • Location: seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/operation/TaskReportStatusOperation.java:79
  • Why it matters: Root cause: the new guard pins only the outer serializer type, identified flag, factory ID and class ID of the location field. Two untyped reads follow it.
  • TaskLocation.readData (TaskLocation.java:108) immediately does taskGroupLocation = in.readObject(). TaskGroupLocation implements only java.io.Serializable and has no entry in the serializer hooks under server/serializable. A valid sender therefore encodes it through Hazelcast's Java-serialization fallback, and the reader accepts whatever type the wire names in that slot.
  • A repo-wide search finds no Java serialization filter configured, so that nested read is unrestricted.
  • status = in.readObject() on line 107 is untyped as well. By the PR description's own account, a generic read rejects a wrong object only after constructing it, so an unexpected class in the status slot is still built before the assignment to SeaTunnelTaskState fails.

Impact: the comment on line 79 says the identity is validated "before constructing the declared object", and the PR is framed as wire-type validation for this operation. In practice the guarantee covers one level. A malformed report with a correct outer TaskLocation header can still have a wire-chosen class constructed in the nested field or in the status slot.

Suggested fix: either extend the validation to these two reads, or narrow the comment and PR description so they state that only the outer location identity is checked and the nested and status reads remain open.

  • Evidence: seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/operation/TaskReportStatusOperation.java:96 if (factoryId != TaskDataSerializerHook.FACTORY_ID; seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/operation/TaskReportStatusOperation.java:97 || classId != TaskDataSerializerHook.TASK_LOCATION_TYPE) {; seatunnel-engine/seatunnel-engine-server/src/test/java/org/apache/seatunnel/engine/server/checkpoint/operation/TaskReportStatusOperationSerializationTest.java:99 Data data = service.toData(new ReportWire(new SideEffectLocation()));

  • Suggested fix: This guard only pins the outer 13-byte header. Two untyped reads follow it:

  • TaskLocation.readData does taskGroupLocation = in.readObject(). TaskGroupLocation is a plain java.io.Serializable with no serializer-hook entry, so this slot goes through the Java-serialization fallback, and I could not find a Java serialization filter configured anywhere in the repo.

  • status = in.readObject() just below is untyped too. As the PR description says, a generic read rejects a wrong object only after constructing it, so an unexpected class in the status slot is still built before the assignment fails.

So the wire-selected class is still materialized, one read later. Could we either cover these two reads as well, or reword this comment and the PR description to say that only the outer location identity is validated?

  • Priority: P1 — should fix in this PR
  • I traced this in the code.
  • When it happens: Send the envelope that ReportWire writes, with a valid TaskLocation in the location slot (header -2 / IDS / -30004 / 9) and new SideEffectLocation() in the status slot instead of SeaTunnelTaskState.RUNNING (test:209). The header check passes and line 106 succeeds. Line 107 then constructs the class-named DataSerializable and runs its readData, and only afterwards does the implicit cast to SeaTunnelTaskState throw ClassCastException. The same holds for the bytes of the nested taskGroupLocation slot read at TaskLocation.java:108.

Issue 2: A null location is now rejected at decode time but a null status is still accepted, and one such packet stalls a master operation thread for about 60 seconds.

  • Location: seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/operation/TaskReportStatusOperation.java:87
  • Why it matters: - Root cause: the new serializer-type check rejects a null location with a clear IOException (line 87 formats the null case). The next read, status = in.readObject() on line 107, has no equivalent check, so a report with a null status still decodes successfully.
  • What happens next: runInternal calls CheckpointManager.reportedTask, which reaches pipelineTaskStatus.put(operation.getLocation().getTaskID(), operation.getStatus()) in CheckpointCoordinator.reportedTask (CheckpointCoordinator.java:325). pipelineTaskStatus is a ConcurrentHashMap, so a null value throws NullPointerException.
  • Why it is expensive: runInternal wraps the call in RetryUtils.retryWithException with e -> true, Constant.OPERATION_RETRY_TIME = 30 and Constant.OPERATION_RETRY_SLEEP = 2000 ms. The NPE is retried 30 times with a 2-second sleep each time, so the thread running the operation is held for about a minute before the failure surfaces.
  • Context: every SeaTunnelTask, SourceSplitEnumeratorTask and SinkAggregatedCommitterTask sends this operation during startup (AbstractTask.java:108-112), so delays on this path affect job startup.
  • Suggested fix: reject a null status in readInternal with an IOException, as is now done for the location, so a malformed report fails once at decode instead of being retried.
  • Evidence: seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/operation/TaskReportStatusOperation.java:87 + (serializerType == CONSTANT_TYPE_NULL ? "null" : serializerType));; seatunnel-engine/seatunnel-engine-server/src/test/java/org/apache/seatunnel/engine/server/checkpoint/operation/TaskReportStatusOperationSerializationTest.java:94 assertInvalidLocation(null, "null");; seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/operation/TaskReportStatusOperation.java:90 if ((buffer.readByte(position + Integer.BYTES) & 1) == 0) {
  • Suggested fix: We now reject a null location here, but a null status still decodes. It then reaches pipelineTaskStatus.put(taskID, null) on a ConcurrentHashMap in CheckpointCoordinator.reportedTask. The resulting NPE is retried by runInternal (e -> true, 30 attempts with a 2000 ms sleep), so one bad report holds a master operation thread for about a minute.

Since this PR makes decode the admission point for this operation, could we also throw an IOException after status = in.readObject() when the status is null? That way the report is rejected once instead of being retried.

  • Priority: P1 — should fix in this PR
  • I traced this in the code.
  • When it happens: Send a TaskReportStatusOperation whose location is a valid TaskLocation of a running job and whose status slot is null (out.writeObject(null) in place of test:209). Decoding succeeds with status == null. Each reportedTask attempt throws NPE at CheckpointCoordinator.java:325 and is retried 30 times with a 2000 ms sleep, so the executing thread blocks for about 60 s before RuntimeException("Execute given execution failed after retry 30 times").

Issue 3: testRejectsClassNamedLocationBeforeConstruction does not pin the identified-flag guard: its counters cannot fail with the typed read, and the rejection would still occur with the flag check removed.

  • Location: seatunnel-engine/seatunnel-engine-server/src/test/java/org/apache/seatunnel/engine/server/checkpoint/operation/TaskReportStatusOperationSerializationTest.java:103
  • Why it matters: - Root cause: the test asserts only HazelcastSerializationException plus constructions == 0 and reads == 0.
  • Production still ends in in.readObject(TaskLocation.class) (TaskReportStatusOperation.java:106). By the PR description's own account, that typed reader instantiates the declared TaskLocation, not the class named on the wire. The two counters therefore stay at zero whether or not the new guards exist. They only distinguish this code from the generic-read-plus-instanceof variant that the PR description mentions.
  • The exception assertion does not isolate the flag check either. If the identified-flag branch on lines 90-93 were removed, the payload would still be rejected by the factory/class ID comparison that follows, and the test would stay green.
  • Impact: the "expects an identified" branch is the only guard this test is named for, and nothing asserts that it is the branch that fires. The other malformed-location cases go through assertInvalidLocation, which does check the root-cause message.
  • Suggested fix: also assert the root-cause message for this payload, for example by running it through assertInvalidLocation(new SideEffectLocation(), "expects an identified") alongside the counter checks.
  • Evidence: seatunnel-engine/seatunnel-engine-server/src/test/java/org/apache/seatunnel/engine/server/checkpoint/operation/TaskReportStatusOperationSerializationTest.java:103 HazelcastSerializationException.class, () -> service.toObject(data));; seatunnel-engine/seatunnel-engine-server/src/test/java/org/apache/seatunnel/engine/server/checkpoint/operation/TaskReportStatusOperationSerializationTest.java:104 Assertions.assertEquals(0, SideEffectLocation.constructions);; seatunnel-engine/seatunnel-engine-server/src/test/java/org/apache/seatunnel/engine/server/checkpoint/operation/TaskReportStatusOperationSerializationTest.java:113 Assertions.assertThrows(
  • Suggested fix: This only asserts the exception type and the counters. With the typed readObject(TaskLocation.class) the wire-named class is not instantiated anyway, so the counters stay at 0 with or without the new guards. If the identified-flag check were removed, the payload would still be rejected by the factory/class comparison, so the "expects an identified" branch is never asserted.

Could you also check the root-cause message for this payload, e.g. via assertInvalidLocation(new SideEffectLocation(), "expects an identified")? Then the test fails if that branch stops firing.

  • Priority: P2 — optional
  • I traced this in the code.
  • When it happens: Mutation: remove lines 90-93 of TaskReportStatusOperation.java and run TaskReportStatusOperationSerializationTest#testRejectsClassNamedLocationBeforeConstruction. The payload from new ReportWire(new SideEffectLocation()) is rejected by the factory/class-ID check instead, HazelcastSerializationException is still thrown, both counters stay 0, and the test stays green.

Issue 4: The new failover IT assertion passes identically on the merge base and depends on reflection over the private plan field, so it guards only the valid path.

  • Location: seatunnel-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base/src/test/java/org/apache/seatunnel/engine/e2e/CheckpointCoordinatorFailoverIT.java:706
  • Why it matters: - Root cause: the added block compares coordinator.getPipelineTaskStatus().keySet() with the task IDs of plan.getPipelineSubtasks().
  • Valid reports decode to the same TaskLocation before and after this PR. In addition, allTaskReady() already requires pipelineTaskStatus.size() == plan.getPipelineSubtasks().size() (CheckpointCoordinator.java:459) before it calls notifyTaskStart(), which the job needs before it can produce the 20 rows asserted just above. The assertion therefore cannot fail for the reason this PR fixes.
  • It is still a reasonable valid-path guard for the new header check, but the comment "Every worker task must report its original ID to the master" reads as if it were a regression test for the fix.
  • Fragility: plan is a private field (CheckpointCoordinator.java:131) read through ReflectionUtils.getField(coordinator, "plan"), which returns an empty Optional when the field is not found. The fallback is orElseThrow(AssertionError::new) with no message, and it sits inside the untilAsserted block with a 2-minute limit. A rename of the field would show up as a timeout with nothing pointing at the reflective lookup.
  • Suggested fix: reword the comment to describe a valid-path check, and give the AssertionError a message that names the missing field.
  • Evidence: seatunnel-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base/src/test/java/org/apache/seatunnel/engine/e2e/CheckpointCoordinatorFailoverIT.java:707 .orElseThrow(AssertionError::new);; seatunnel-e2e/seatunnel-engine-e2e/connector-seatunnel-e2e-base/src/test/java/org/apache/seatunnel/engine/e2e/CheckpointCoordinatorFailoverIT.java:712 coordinator.getPipelineTaskStatus().keySet());
  • Suggested fix: Two small points. First, this assertion passes on the merge base as well: valid reports decode the same way, and allTaskReady() already gates on the size match. It is a valid-path guard for the new header check rather than a regression test for the fix, so please word the comment accordingly.

Second, the reflective lookup of the private plan field throws a message-less AssertionError inside the untilAsserted block, so a field rename would surface as a 2-minute timeout with no hint. Could we give that error a message such as "CheckpointCoordinator.plan not found"?

  • Priority: P2 — optional
  • I traced this in the code.
  • When it happens: Revert only TaskReportStatusOperation.java to the merge base and run CheckpointCoordinatorFailoverIT#testCheckpointCompletesAfterMasterFailoverWithIdleClosedReader: the new key-set assertion still passes, because every report in the test is a valid TaskLocation. Separately, rename CheckpointCoordinator.plan: IT:706-707 throws a bare AssertionError on every poll until Awaitility times out after 2 minutes.

Issue 5: The new decode errors lack diagnostic context: the non-buffered rejection does not name the actual input class, and the identified-flag rejection does not say what was found.

  • Location: seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/operation/TaskReportStatusOperation.java:74
  • Why it matters: - Root cause: the fail-closed branch throws "Task status report requires a buffered input to validate ...TaskLocation" without in.getClass().getName(). The identified-flag branch throws "Task status report expects an identified ...TaskLocation" without the observed header byte or any indication that a class-named DataSerializable was received.
  • Convention: JobImmutableInformation.hasRemainingBytes (JobImmutableInformation.java:262-265) uses the same instanceof BufferObjectDataInput guard but degrades gracefully by returning false. Here the decode fails closed, so the exception message is the only information available when it triggers.
  • Impact: if the operation is ever decoded from a different input implementation, or a peer sends a non-identified payload, the log says what was expected but not what arrived.
  • Suggested fix: append the actual input type to the first message, for example " but got " + in.getClass().getName(), and include the observed header byte in the identified-flag message.
  • Evidence: seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/operation/TaskReportStatusOperation.java:92 "Task status report expects an identified " + TaskLocation.class.getName());
  • Suggested fix: Since this branch fails closed (unlike JobImmutableInformation.hasRemainingBytes, which tolerates a non-buffered input), the message is all an operator will see. Could we append the actual input type, e.g. " but got " + in.getClass().getName()?

The same applies to the identified-flag message on line 92: including the observed header byte would make it clear that a non-identified (class-named) payload arrived rather than a wrong factory or class ID.

  • Priority: P2 — optional
  • I traced this in the code.
  • When it happens: Decode service.toData(new ReportWire(new SideEffectLocation())) (test:99). The root cause message is exactly "Task status report expects an identified org.apache.seatunnel.engine.server.execution.TaskLocation", with no indication that a class-named DataSerializable arrived.

Issue 6: The new decode errors carry no sender or call context and print the unexpected serializer as a raw integer.

  • Location: seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/operation/TaskReportStatusOperation.java:83
  • Why it matters: All four new IOException messages describe the expected class but nothing about where the bad report came from.
  • Root cause: the messages are built only from TaskLocation.class.getName() and the peeked values. The serializer branch prints a bare number such as -11 unless it is the null type.
  • Impact: when a master logs "Task status report expects ...TaskLocation but wire serializer type is -11", an operator cannot tell which member or invocation sent it, and has to look up Hazelcast's serialization constants to learn what type the number stands for.
  • Suggested fix: include the caller and call identity in the messages, for example getCallerUuid() and getCallId(). The operation envelope should already have been read by the time readInternal runs, but I could not confirm that against Hazelcast's source in this checkout, so please verify. Also map the serializer type to a readable name where possible.
  • Evidence: seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/operation/TaskReportStatusOperation.java:87 + (serializerType == CONSTANT_TYPE_NULL ? "null" : serializerType));; seatunnel-engine/seatunnel-engine-server/src/main/java/org/apache/seatunnel/engine/server/checkpoint/operation/TaskReportStatusOperation.java:92 "Task status report expects an identified " + TaskLocation.class.getName());
  • Suggested fix: Small diagnosability point: this message, and the three siblings, say what was expected but not who sent the report, and the serializer is printed as a raw number such as -11.

Could we include getCallerUuid() / getCallId() (the operation envelope should already be read at this point; please confirm) and a readable serializer name? That way the master log identifies the offending member without a lookup of Hazelcast's serialization constants.

  • Priority: P2 — optional
  • I traced this in the code.
  • When it happens: Decode service.toData(new ReportWire("not a task location")). The root cause message is "Task status report expects org.apache.seatunnel.engine.server.execution.TaskLocation but wire serializer type is " followed by Hazelcast's raw numeric String type ID, with no sender or call context.

On points raised earlier in this thread

  • +1 — I checked this independently: Scoped to the visible behavioural point: a report whose location slot carries a different wire type is rejected during decode, before any status entry is written, and valid reports are unchanged. That holds at head a9cf75d. The implementation the comment describes ("Now: Object decodedLocation = in...", readInternal:64-79, runInternal:83-98) is an earlier head and no longer matches: readInternal is now lines 69-108 and keeps the typed read after a header check. The comment is truncated, so nothing beyond the visible text is endorsed.
  • I read this differently: The approval rests on "exact-head Build is successful" for the "unchanged head" 351f3b4. The head under review is a9cf75d, which is a different commit, and its Build check is reported as failure. The PR description itself says the earlier green hosted build applies to the old head. The conclusion that the CI-only blocker is cleared and the PR can merge therefore does not hold at this head. The supplied material does not say which CI job failed, so no source defect is inferred from it; the local build and the two targeted suites passed.

Review conclusion

Conclusion: final approval remains pending on the previous comments

2. Remaining follow-ups

  • Issue 1: The header check stops at the outer 13 bytes: the nested taskGroupLocation and the status field are still decoded by untyped readObject() calls, so a wire-selected class is still materialized one read later.
  • Issue 2: A null location is now rejected at decode time but a null status is still accepted, and one such packet stalls a master operation thread for about 60 seconds.
  • Issue 3: testRejectsClassNamedLocationBeforeConstruction does not pin the identified-flag guard: its counters cannot fail with the typed read, and the rejection would still occur with the flag check removed.
  • Issue 4: The new failover IT assertion passes identically on the merge base and depends on reflection over the private plan field, so it guards only the valid path.
  • Issue 5: The new decode errors lack diagnostic context: the non-buffered rejection does not name the actual input class, and the identified-flag rejection does not say what was found.
  • Issue 6: The new decode errors carry no sender or call context and print the unexpected serializer as a raw integer.

Thanks for the updates so far. Happy to discuss the remaining points.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the overly broad clearance in my earlier review. The following remaining concerns are carryovers, already identified by @SEZ9, rather than new-version defects. I re-reviewed the complete current diff and pinned serializer path. The new top-level location check is correct, but malformed status handling still needs an explicit admission decision.

What problem does this PR solve?

User pain: Task startup reports can carry an inconsistent top-level TaskLocation identity and be interpreted by the typed reader.

Fix: Validate serializer/IDS/factory/class before the constrained location read and add valid-wire/member/failover coverage.

In one sentence: Reject a malformed task address before the master uses it; report status still needs validation.

1. Code changes

1.1 Core logic

Complete runtime path:

SeaTunnelTask / enumerator / committer startup state -> AbstractTask.reportTaskStatus
 -> TaskReportStatusOperation(location,status) -> sendToMaster.join
 -> Hazelcast operation envelope + MDC -> new absolute outer location header guard
 -> TaskLocation typed decode (nested group still generic) -> status generic decode
 -> runInternal retry wrapper -> CheckpointManager.reportedTask
 -> CheckpointCoordinator ConcurrentHashMap taskID/status -> WAITING_RESTORE restore state
 -> READY_START allTaskReady -> start notifications + checkpoint coordinator progression
RecordSerializerIT: every state crosses two members; failover IT: expected IDs/output/checkpoint

Key findings and correctness:

I read the complete current diff and pinned upstream Hazelcast5.1.7 source. DataSerializableSerializer.readInternal constructs the requested class when aClass is set, then reads the wire identity without comparing it to that class. In the generic branch it selects the wire factory/class and runs that object's readData. The new absolute reads preserve the input cursor and honor configured byte order; short buffered inputs fail through bounds checks. This confirms the outer-header defect and the usefulness of admission before the constrained read. It does not validate the entire TaskLocation object graph. TaskLocation.readData still reads taskGroupLocation generically, and subclasses/status have their own independent fields. No successful-job sender generates the malformed top-level headers: this is decode hardening rather than an ordinary checkpoint or split-algorithm correction. The report writer and IDs remain unchanged. A null status still decodes, then CheckpointCoordinator.reportedTask puts it into ConcurrentHashMap, which rejects null. runInternal retries every exception with OPERATION_RETRY_TIME and OPERATION_RETRY_SLEEP, repeatedly failing the same invalid payload rather than admitting/rejecting it once. Valid startup states do not hit this malformed-input branch; normal report progress and task-ID semantics remain unchanged. The outer constructor-admission fix is not a fix for the nested generic group or status read.

Before:

import org.apache.seatunnel.engine.server.SeaTunnelServer;
import org.apache.seatunnel.engine.server.execution.TaskLocation;
import org.apache.seatunnel.engine.server.serializable.CheckpointDataSerializerHook;
import org.apache.seatunnel.engine.server.task.operation.TracingOperation;
import org.apache.seatunnel.engine.server.task.statemachine.SeaTunnelTaskState;

import com.hazelcast.nio.ObjectDataInput;
import com.hazelcast.nio.ObjectDataOutput;
import com.hazelcast.nio.serialization.IdentifiedDataSerializable;

After:

import org.apache.seatunnel.engine.server.SeaTunnelServer;
import org.apache.seatunnel.engine.server.execution.TaskLocation;
import org.apache.seatunnel.engine.server.serializable.CheckpointDataSerializerHook;
import org.apache.seatunnel.engine.server.serializable.TaskDataSerializerHook;
import org.apache.seatunnel.engine.server.task.operation.TracingOperation;
import org.apache.seatunnel.engine.server.task.statemachine.SeaTunnelTaskState;

import com.hazelcast.internal.nio.BufferObjectDataInput;
import com.hazelcast.nio.ObjectDataInput;
import com.hazelcast.nio.ObjectDataOutput;
import com.hazelcast.nio.serialization.IdentifiedDataSerializable;

Current CI / upstream evidence: I read the full failing JDBC-part7/JDK17 job139056302139 in fork Build45568028297. Five Maven-wrapper downloads return HTTP429 and then MavenWrapperMain cannot load, before test reports exist. This is bootstrap failure, not an executed serialization-test failure. Current dev has no mvnw fixing delta; proposed #13466 is not in the captured base, so sync alone is not an established remedy for this lane. Rerun the existing failed lane after the transient limit clears or the upstream wrapper fix lands; do not add unrelated dependencies. Source admission and CI remain separate gates.

1.2 Compatibility

Valid report bytes, factory/class IDs, task-state enum encoding, APIs/options/defaults and checkpoint data formats remain unchanged. Invalid top-level identities fail earlier and non-buffered custom inputs fail closed. Adding null-status admission would preserve all valid senders. This source inspection does not prove mixed-version compatibility by execution.

1.3 Performance and side effects

Constant-size absolute header checks have no per-row work or unbounded state cost. The report retry policy and task-map update are unchanged, so a null status still causes repeated deterministic failures on the operation thread; reject it before that path. No new credential logging, thread, lock or network dependency is added.

1.4 Errors, logging, and findings

No independently numbered new finding. The existing shared findings below remain; they are attributed to their original reviewer rather than duplicated.

+1 to @SEZ9's existing Issue 2 (TaskReportStatusOperation.java:107 and CheckpointCoordinator.java:325): reject null report status once at decode, add the regression, and avoid retrying a deterministic invalid value on the master operation thread. I treat this as the remaining source blocker at the same operation admission boundary. It predates this head and is not disguised as a newly introduced regression. Their Issue 1 correctly limits the guarantee to the outer header; explicitly record nested/status generic-read scope rather than claiming whole-object safety. Their Issues 3-6 (specific-guard assertions, valid-only IT wording/reflection diagnostics, actual input/header/operation/caller context) remain non-blocking and are not renumbered as Daniel findings. I agree with their correction that old-head green CI cannot clear the new-head gate. The current description does distinguish old versus new verification, and no additional local results are claimed here.

2. Code quality

2.1 Conventions

Reviewed all changed files for license, imports, naming, core-method and state-field comments. No additional convention blocker found.

2.2 Test coverage and stability

Stability rating: At risk. At risk. Both byte-order valid-report tests cover all enum states and exact re-encoded bytes; services dispose in cleanup. Two-member transfer and existing idle-reader failover IT remain valid-path regression guards, not a malformed-payload reproduction or mixed-version test. The class-named case can still pass if a later identity check rejects after the IDS check is removed; pin the exact root diagnostic. The new reflective plan lookup has a message-less AssertionError inside bounded Awaitility; use a public/test accessor or at least name the missing field. No new fixed sleep, random assertion or ordering assumption was added. None of the fixtures writes null status or a malicious nested field, so those gaps are not established as closed by passing tests.

2.3 Documentation

No EN/ZH configuration option or migration is introduced. Keep code/PR claims explicitly scoped to top-level location identity and identify nested/status validation as separate work. The new failover assertion should be described as a valid-path guard.

3. Architecture

3.1 Change location

The affected component owns this behavior. Keep the smallest complete correction there; a wider engine or connector redesign is not justified by this diff.

3.2 Maintainability

Keep the behavior, lifecycle ownership, and failure contract together. The affected component owns this behavior. Keep the smallest complete correction there; a wider engine or connector redesign is not justified by this diff.

3.3 Extensibility

Prefer the existing component boundary and tests over unrelated shared abstractions.

3.4 Upgrade impact

Valid report bytes, factory/class IDs, task-state enum encoding, APIs/options/defaults and checkpoint data formats remain unchanged. Invalid top-level identities fail earlier and non-buffered custom inputs fail closed. Adding null-status admission would preserve all valid senders. This source inspection does not prove mixed-version compatibility by execution.

4. Findings summary

Completeness check: All changed files and affected entry/failure paths were reviewed; configuration/serialization compatibility, test failure capability and stability, documentation/examples, change ownership, and current CI/conflict/review gates are covered above. No unreviewed source scope is claimed complete.

# Finding Location Severity
- No new source blocker found - -

5. Merge recommendation

Merge after fixes

Blocking items: Existing @SEZ9 Issue 2: reject null status before the deterministic ConcurrentHashMap failure/retry loop and cover that malformed report. Keep top-level location scope explicit. Current-head CI and write-capable maintainer review remain independent requirements.

Non-blocking suggestions: None beyond the validation limits above.

Overall: the reviewed source path is coherent; no runtime acceptance is claimed beyond the actual CI result. Daniel has READ permission, so this COMMENT cannot dismiss historical requested changes or satisfy a write-capable maintainer approval gate.

CI and repository state: Signal pull request update: SUCCESS; Build: FAILURE; Build: failure. GitHub reports BLOCKED / REVIEW_REQUIRED.

Verification: Reviewed all changed files and the referenced call sites at a9cf75d6994f368a471c145c6d0d4bda6d17c00f against merge base 50e8a0d30db53b6be77509fee8873a2439716171. git diff --check passed. I did not build, run tests, or execute SeaTunnel locally.

Review time: 2026-11-26T07:18:14.384839-05:00

Local evidence: git fetch obtained head a9cf75d6994f368a471c145c6d0d4bda6d17c00f; git merge-base returned 50e8a0d30db53b6be77509fee8873a2439716171; git diff --stat reports 4 files changed, 329 insertions(+). git show and source searches were used for the entry points above. No local build, unit test, E2E, Docker run or service startup was executed.

@CryoThrust

Copy link
Copy Markdown
Contributor Author

The null-status case is now rejected during decoding in 3ca3c8eb0, before it can reach the coordinator's map and retry path. Its regression fails on the previous head. The class-named test now pins the IDS diagnostic, errors identify the concrete operation/input/header, and the failover assertion is labeled as a valid-path guard with an explicit missing-plan diagnostic.

The scope is top-level location identity and non-null status, not nested-object safety. The final server check passed 26 cases (one existing skip, zero failures/errors). All nine selected embedded-member/failover cases passed, including the existing checkpoint/output assertions. The PR description records current verification and limitations; fresh hosted CI remains separate.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update. I re-read the complete current diff and report/startup/restore chain; the null-status blocker is closed. Sorry for missing the test-class documentation point in the previous review: that optional item below is a carryover, not a newly introduced runtime regression.

What problem does this PR solve?

User pain: A malformed task-status location can be accepted under a declared type without validating the wire identity; a null status reaches a map that rejects nulls and is retried.

Approach: Peek the outer serializer/IDS/factory/class header before the typed read, reject null status at decode, and improve operation diagnostics.

In one sentence/example: A status packet with a String where TaskLocation belongs should fail once during decoding, rather than reach checkpoint readiness handling.

1. Code changes

1.1 Core logic

Complete runtime path:

worker task INIT/WAITING_RESTORE -> AbstractTask.reportTaskStatus -> TaskReportStatusOperation
 -> writeInternal: tracing context + location + status (unchanged)
 -> master readInternal [70-123]: consume tracing, require buffered input
 -> absolute header checks at current cursor, preserving byte order/position
 -> typed TaskLocation read -> nested TaskGroupLocation uses existing serializer
 -> status decode -> reject null before runInternal
 -> CheckpointManager.reportedTask -> coordinator pipelineTaskStatus map
 -> WAITING_RESTORE restores state; READY_START drives readiness/start handshake

Key findings and correctness:

  1. Healthy task startup and recovery report through this operation; valid encoded fields/IDs and subsequent state handling remain unchanged. The new branch targets malformed admission.
  2. The current null-status rejection closes the previous map/retry blocker. The class-named UT now pins the IDS error specifically, not just any exception.
  3. The guarantee is explicitly outer location identity plus non-null status. Nested objects and non-null status materialization retain existing serializers; this is not arbitrary object-graph validation.
  4. Operation/input/header names now improve diagnostics. The new plan-identity IT assertion is a valid-path precondition before the actual failover in that method; it should not be represented as a standalone malformed-input or post-failover regression proof.
  5. Absolute buffer reads do not advance the cursor, and both-endian round trips cover the expected valid wire contract.

Before:

location = in.readObject(TaskLocation.class);
status = in.readObject();

After (key excerpts):

// absolute serializer/IDS/factory/class checks precede the typed read
location = in.readObject(TaskLocation.class);
status = in.readObject();
if (status == null) {
    throw new IOException(getClass().getName() + " received null status for " + location);
}

1.2 Compatibility

Fully compatible for valid peer packets, serializer IDs, request fields, status values, job options and checkpoint/savepoint formats. Malformed null/wrong-location reports now fail earlier. Nonbuffered custom inputs are rejected; the normal Hazelcast buffered path is covered by the source/fixture checks, not a promise to support arbitrary ObjectDataInput implementations.

1.3 Performance and side effects

A constant number of absolute primitive reads per status report; no copy of the frame, new buffer, thread, global lock or retry. Rejecting null status avoids the existing 30-attempt operation retry on malformed input. No healthy checkpoint-state or task resource-lifetime change.

1.4 Errors, logging, and findings

Issue 1: Describe the new serialization regression fixture classes

  • Location: seatunnel-engine/seatunnel-engine-server/src/test/java/org/apache/seatunnel/engine/server/checkpoint/operation/TaskReportStatusOperationSerializationTest.java:47.
  • Description and risk: The new test class and public side-effect fixture classes have no class-level responsibility/invariant Javadoc. Their constructor/read counters and deliberately mismatched serializer identities are central to understanding what the admission test proves. This documentation gap already existed in the preceding reviewed version.
  • Best improvement: Add concise class Javadocs for the regression scope and the malformed/observed payload fixtures; explain that counters prove outer construction/read ordering and do not validate nested objects.
  • Responsibility and trade-off: The status-report decode boundary is the correct smallest owner for this admission rule. TaskLocation's general readData continues its existing format; a complete nested-serialization redesign is a separate scope and must not be implied. A future shared outer-identity helper can unify related operation readers without changing valid bytes.
  • Severity: Medium; blocking: false.
  • Previously raised by another reviewer: No, unless explicitly attributed above.

+1 to @SEZ9's null-status concern: readInternal now throws IOException before ConcurrentHashMap.put/retry. Their IDS assertion and input/header-diagnostic requests are addressed. Their nested-object point is explicitly scoped rather than falsely declared fixed. The IT now identifies itself as a valid-path guard and names a missing plan field. Sender/call context and human-readable serializer names remain optional diagnostic improvements; current concrete operation/header context is adequate for this focused change. No independent maintainer approval was present in the collected reviews.

2. Code quality

2.1 Conventions

Reviewed all changed files for license, imports, naming, core-method and state-field comments. See the numbered findings for the required changes.

2.2 Test coverage and stability

Stability rating: Stable. Stable: deterministic byte fixtures, specific exception/counter assertions and all-status round trips; serialization services are disposed in AfterEach/finally. Two-member IMap tests clean their key. The existing failover IT uses condition polling and a named missing-plan error. It retains reflection coupling but adds no fixed sleep or time-based expected value. Static counters assume the suite's normal sequential method execution; no concurrent-test guarantee is claimed.

2.3 Documentation

No valid user configuration/default or output change requires EN/ZH user-guide edits. The PR description correctly narrows admission scope and separates author-reported local results from current hosted CI. Keep the failover assertion description limited to its actual valid-path position.

3. Architecture

3.1 Change location

The status-report decode boundary is the correct smallest owner for this admission rule. TaskLocation's general readData continues its existing format; a complete nested-serialization redesign is a separate scope and must not be implied. A future shared outer-identity helper can unify related operation readers without changing valid bytes.

3.2 Maintainability

Keep the behavior, lifecycle ownership, and failure contract together. The status-report decode boundary is the correct smallest owner for this admission rule. TaskLocation's general readData continues its existing format; a complete nested-serialization redesign is a separate scope and must not be implied. A future shared outer-identity helper can unify related operation readers without changing valid bytes.

3.3 Extensibility

Prefer the existing component boundary and tests over unrelated shared abstractions.

3.4 Upgrade impact

Fully compatible for valid peer packets, serializer IDs, request fields, status values, job options and checkpoint/savepoint formats. Malformed null/wrong-location reports now fail earlier. Nonbuffered custom inputs are rejected; the normal Hazelcast buffered path is covered by the source/fixture checks, not a promise to support arbitrary ObjectDataInput implementations.

4. Findings summary

Completeness check: All changed files and affected entry/failure paths were reviewed; configuration/serialization compatibility, test failure capability and stability, documentation/examples, change ownership, and current CI/conflict/review gates are covered above. No unreviewed source scope is claimed complete.

# Finding Location Severity
1 Describe the new serialization regression fixture classes seatunnel-engine/seatunnel-engine-server/src/test/java/org/apache/seatunnel/engine/server/checkpoint/operation/TaskReportStatusOperationSerializationTest.java:47 Medium

5. Merge recommendation

Can merge once the recorded CI and repository gates are satisfied

Blocking items: No source blocker. Current-head CI and write-capable maintainer review remain independent requirements.

Non-blocking suggestions: Issue 1: Describe the new serialization regression fixture classes

Overall: the reviewed source path is coherent; no runtime acceptance is claimed beyond the actual CI result. Daniel has READ permission, so this COMMENT cannot dismiss historical requested changes or satisfy a write-capable maintainer approval gate.

CI and repository state: Signal pull request update: SUCCESS; Build: IN_PROGRESS; Build: queued. GitHub reports BLOCKED / REVIEW_REQUIRED.

Verification: Reviewed all changed files and the referenced call sites at 3ca3c8eb0c5e2cb2f96caae5171ab8577f0d6642 against merge base 50e8a0d30db53b6be77509fee8873a2439716171. git diff --check passed. I did not build, run tests, or execute SeaTunnel locally.

Review time: 2026-11-27T04:02:48.647236-05:00

Local evidence: git fetch obtained head 3ca3c8eb0c5e2cb2f96caae5171ab8577f0d6642; git merge-base returned 50e8a0d30db53b6be77509fee8873a2439716171; git diff --stat reports 4 files changed, 362 insertions(+). git show and source searches were used for the entry points above. No local build, unit test, E2E, Docker run or service startup was executed.

@DanielLeens DanielLeens left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous pending-CI snapshot is superseded: the current-head Build is now completed/failure. I inspected the failing lanes: Run / jdbc-connectors-it-part-1 (17, ubuntu-latest); Run / kudu-connector-it (17, ubuntu-latest). Each fails during Maven wrapper bootstrap with HTTP 429 followed by missing MavenWrapperMain, before its tests execute. This is not a checkpoint/serialization assertion result. Latest dev still uses the same bootstrap and proposed #13466/#13450 remain open; no landed fix is established, so syncing alone is not a verified cure. With this attempt complete, rerun only the failed lanes after artifact access recovers; avoid starting a duplicate full Build or patching unrelated dependencies.

5. Merge recommendation

Conclusion: Merge after fixes / remaining repository gates.

Blocking items: No remaining source blocker from Daniel. The current CI/repository gate described above still needs attention.

Non-blocking suggestions: Those from the existing complete review are unchanged; this follow-up adds no source finding. No alternative implementation or unrelated module/dependency patch is requested.

Unchanged head 3ca3c8eb0c5e2cb2f96caae5171ab8577f0d6642; base dev compare diverged, ahead 3 / behind 109. This drift is recorded separately and alone does not request synchronization. This is a CI/gate correction, not another full source review; no local build/test/runtime execution was performed. Daniel has READ permission, so historical requested-changes controls and an effective write-level approval/dismissal remain maintainer actions. Checked 2026-11-27T10:23:37.832129+00:00.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug][Zeta] Task status reports do not validate the task-location wire type

3 participants