nzw921rx opened a new pull request, #13133: URL: https://github.com/apache/seatunnel/pull/13133
### Purpose of this pull request Refs #13130. Savepoint restores reuse the job ID. `CoordinatorService.getJobInfo` previously preferred retained history over the current running or pending attempt. After restoring with observability enabled, the realtime service could therefore continue reading the previous attempt's disabled configuration. Prefer the current running or pending job's metadata before consulting history. Preserve the existing history and distributed-metadata fallbacks, and document the restored-job behavior in English and Chinese. ### Does this PR introduce _any_ user-facing change? Yes. After restoring a job from a savepoint with updated configuration, realtime observability uses the current attempt's settings. REST fields, configuration defaults, and savepoint formats remain compatible. ### How was this patch tested? Validated locally with JDK 11: - 20 targeted unit tests passed across `CoordinatorServiceTest`, `RealtimeMetricsServiceTest`, and `ObservabilityConfigTest`. Coverage includes enabling and disabling observability with conflicting historical metadata, pending jobs, and history fallback. The four new current-attempt regression cases fail against the previous implementation. - Both `RealtimeMetricsRestIT` tests passed. The new case stops a real streaming job with a savepoint, restores the same job ID with observability enabled and a different bucket duration, checks the jobs/edges/vertices endpoints and vertex data, and confirms the previous attempt remains in history. - Scoped `spotless:apply`, `spotless:check`, and `git diff --check` passed. The REST E2E tests ran through `test-compile failsafe:integration-test`; the Failsafe XML reports were checked for failures and errors. Maven `verify` was not run. ### Check list - [x] No new JAR packages or dependencies. - [x] English and Chinese documentation updated. - [x] No incompatible changes requiring migration guidance. - [x] No connector registration or distribution changes. -- 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]
