LuckysHorizon commented on PR #13136: URL: https://github.com/apache/seatunnel/pull/13136#issuecomment-7182975580
@SEZ9 sorry, my earlier comment was pasted truncated, and it was my mistake that it carried no reply. Here is the full response. The rework is at head 2801b15 (a single squashed commit), so your 718f00b8 review is now out of date. **How I tell the restored attempt from a finished one in `getJobInfo()`:** I no longer do. I reverted the reorder, and `CoordinatorService.java` has no diff against the base. `getJobInfo()` keeps the history-first lookup, so a finished job returns its archived DAG, including worker addresses, during `state-cleanup-delay-ms`. The #13130 fix is now local to `RealtimeMetricsService.resolveObservabilityConfig()`. It reads `enabled`, `bucket_ms` and `retention_minutes` from the current attempt's `JobInfo`. It caches per `(jobId, initializationTimestamp)`, and falls back to `getJobInfo()` if the `JobInfo` is missing or unreadable. I did not add an ownership check to `getJobInfo()`, because the realtime path no longer depends on it. **Status of your points** Blocking - Attempt ownership in `getJobInfo()`: moot, because the reorder is gone. - Finished jobs during the cleanup window: fixed by the revert, and the misleading comment was removed with the code. `CoordinatorServiceJobCleanupTest.testGetJobInfoReturnsArchivedDagDuringDelayedCleanup` uses a 30 s cleanup delay and checks that the archived DAG with a non-empty execution plan and worker address is returned while the `runningJobInfoIMap` entry still exists. It fails if the old reorder is re-applied. Docs - Both en and zh pages name the three settings and say that changing `bucket_ms` or `retention_minutes` on restore restarts the in-memory window. Since there is no client-visible change, `incompatible-changes.md` is untouched. Tests - `testGetJobInfoReturnsHistoryWhenDistributedAndCurrentAttemptsMatch` is removed, since it could not tell the two sources apart. The reorder-only tests are removed too. The current-attempt-beats-history case is now covered in `RealtimeMetricsServiceTest`. - The restore IT raises history retention above its await budget. It asserts the attempt-1 history entry (`enabled=false`) still exists, then asserts `/metrics/realtime/jobs` reports `enabled=true` and `bucketMs=2000` with non-empty edges and vertices. Reverting the `RealtimeMetricsService` change makes it fail. - `awaitAllTasksReady` uses the public `getCheckpointCoordinator(pipelineId)`. The only remaining reflective read is `isAllTaskReady`, and it throws a descriptive `AssertionError`. - Temp files are created inside the `try`, and running jobs are cancelled best-effort in `finally`. I don't disagree with any of your points. Local results are in the PR description. The apache-side Build still needs workflow approval, so I would appreciate an approval of the run. Please re-review when you have time. Thank You ! -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
