Skip to content

[Improvement-17330][K8s] Replace job watcher with informer#18358

Open
det101 wants to merge 1 commit into
apache:devfrom
det101:fix-17330-k8s-stale-resource-version
Open

[Improvement-17330][K8s] Replace job watcher with informer#18358
det101 wants to merge 1 commit into
apache:devfrom
det101:fix-17330-k8s-stale-resource-version

Conversation

@det101

@det101 det101 commented Jun 17, 2026

Copy link
Copy Markdown
Contributor

Was this PR generated or assisted by AI?

YES

Purpose of the pull request

fix #17330

Brief change log

Verify this pull request

This change added tests and can be verified as follows:

./mvnw -pl dolphinscheduler-task-plugin/dolphinscheduler-task-api clean test -Dtest=K8sTaskExecutorTest

Pull Request Notice

Pull Request Notice

If your pull request contains incompatible change, you should also add it to docs/docs/en/guide/upgrade/incompatible.md

Co-authored-by: Cursor <cursoragent@cursor.com>
@det101 det101 force-pushed the fix-17330-k8s-stale-resource-version branch from 746825e to b65a890 Compare June 17, 2026 07:12
@SbloodyS SbloodyS closed this Jun 17, 2026
@SbloodyS SbloodyS reopened this Jun 17, 2026
@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 60%)

See analysis details on SonarQube Cloud


@Override
public void onAdd(Job watchedJob) {
// ignore initial add event, same as Watcher.Action.ADDED

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ADD log of the event

countDownLatch.countDown();
@Override
public void onUpdate(Job oldJob, Job watchedJob) {
handleBatchJobEvent(watchedJob, taskInstanceId, taskResponse, countDownLatch);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Remove handleBatchJobEvent method, since the method name is strategy

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.

[Improvement][K8s] too old resource version

3 participants