Skip to content

[To dev/1.3] Load: preserve pending tablets when parser fails (#18487) - #18509

Merged
jt2594838 merged 4 commits into
apache:dev/1.3from
Caideyipi:cp-429587f-dev-1.3
Aug 25, 2026
Merged

jt2594838 merged 4 commits into
apache:dev/1.3from
Caideyipi:cp-429587f-dev-1.3

Conversation

@Caideyipi

Copy link
Copy Markdown
Collaborator

Problem

When tree-model Load falls back from scan parsing to query parsing, a parser exception can occur after earlier Tablets have been converted but before the pending batch reaches its normal flush boundary. The exception path released the conversion context and discarded that batch.

Fix

Flush pending Tablets before returning a normal parser error. Temporary-unavailable results retain the pending batch and original parser status for the next managed-task retry; memory-pressure and interruption exceptions keep their existing retry behavior.

Tests

  • mvn spotless:apply -pl iotdb-core/datanode (passed)
  • Checkstyle: 0 violations
  • mvn test -pl iotdb-core/datanode -Dtest=LoadTreeStatementDataTypeConvertExecutionVisitorTest -DfailIfNoTests=false (blocked by pre-existing DataNode compilation errors unrelated to this change)

@jt2594838
jt2594838 merged commit bdf6b7e into apache:dev/1.3 Aug 25, 2026
21 of 22 checks passed
@jt2594838
jt2594838 deleted the cp-429587f-dev-1.3 branch August 25, 2026 06:21
jt2594838 pushed a commit that referenced this pull request Sep 18, 2026
#18509) (#18604)

* [To dev/1.3] Load: preserve pending tablets when parser fails (#18487) (#18509)

* Fix missing historical source test helper

---------

Co-authored-by: 陈哲涵 <zhehan.chen@timecho.com>
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