Skip to content

[To dev/1.3] Preserve LOAD sources after unrecoverable query fallback - #19090

Merged
jt2594838 merged 4 commits into
apache:dev/1.3from
Caideyipi:cp/9463d011-dev-1.3
Nov 3, 2026
Merged

jt2594838 merged 4 commits into
apache:dev/1.3from
Caideyipi:cp/9463d011-dev-1.3

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Description

Backports #19073 (9463d011e857ca060c8d1c799f803a54fba9c115) to dev/1.3, based on eda8986d15926bf7669e7b51de73405ec65bf7ea.

The existing fallback iterator could skip an unreadable query task and finish as a successful LOAD, allowing a partially loaded source to be deleted. This change keeps salvaging readable data, reports unrecoverable failures, and retains failed sources for retry. It also resumes each series from its emitted timestamp across repeated chunk groups and propagates metadata traversal failures.

The backport preserves the 1.3 TsFile APIs and ports the regression scenarios into the existing LOAD test fixture. Corrupt test sources span time partitions to exercise decoding and query fallback despite the 1.3 local-load fast path. Conversion-log assertions check all DataNodes because scheduling can select another node.

Validation

  • mvn spotless:apply -P with-integration-tests: passed.
  • LoadTreeStatementDataTypeConvertExecutionVisitorTest: 13 tests passed.
  • IoTDBLoadTsFileIT#testDirectoryQueryFallbackRetainsOnlyFailedSources: passed with both SimpleIT (1C1D) and ClusterIT (1C3D), including on-success=none, on-success=delete, source files and sidecar retention, and repair/retry assertions.
  • IoTDBLoadTsFileIT#testConcurrentQueryFallbackFailureRetainsSourceForRetry: passed with both SimpleIT (1C1D) and ClusterIT (1C3D).

Validation used local incremental reactor builds. The complete test suite was not run.

* Fix LOAD fallback error reporting and scan-boundary resumption

* Fix LOAD fallback checkpoints across chunk groups

* Fix LOAD fallback metadata error propagation

* Fix LOAD fallback metadata batches

(cherry picked from commit 9463d01)
@jt2594838
jt2594838 merged commit c816d5f into apache:dev/1.3 Nov 3, 2026
16 checks passed
@jt2594838
jt2594838 deleted the cp/9463d011-dev-1.3 branch November 3, 2026 01:30
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