Skip to content

[To dev/1.3] Fix active LOAD worker retirement leaving files pending - #19091

Merged
jt2594838 merged 2 commits into
dev/1.3from
codex/cp-19076-dev-1.3
Nov 3, 2026
Merged

jt2594838 merged 2 commits into
dev/1.3from
codex/cp-19076-dev-1.3

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Backport of Apache IoTDB commit 1b2158fec358ed9952f5cbca2bc1387dd46b3419.

The active LOAD scheduler could retire its last worker while another file entered the pending queue, leaving that file pending. The change tracks submitted loader tasks under the executor lock and rechecks the pending queue when a worker exits.

The regression tests are adapted to the dev/1.3 deletion metadata, TsFile writer, and load-trigger APIs.

Validation:

  • ActiveLoadTsFileLoaderTest: 7 tests passed in both configured Surefire executions.
  • Failsafe report for IoTDBLoadTsFileActiveScanIT: 2 tests, 0 failures, 0 errors, 0 skipped.
  • git diff --check: passed.
  • The repository-wide IT selection check reports existing issues in other 1.3 test classes; it did not report the new active-scan IT, whose two tests ran directly.

@sonarqubecloud

sonarqubecloud Bot commented Nov 2, 2026

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
B Maintainability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@jt2594838
jt2594838 merged commit d8bad7e into dev/1.3 Nov 3, 2026
16 of 18 checks passed
@jt2594838
jt2594838 deleted the codex/cp-19076-dev-1.3 branch November 3, 2026 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants