Caideyipi opened a new pull request, #18690: URL: https://github.com/apache/iotdb/pull/18690
## Description Pipe tablet batch responses carry per-row redirection statuses. Table-model `InsertTabletStatement` and `InsertRowsStatement` batches can contain multiple device IDs, so attaching a single statement path to those statuses can create invalid leader-cache entries and misroute later writes. This change: - keeps redirect device-path metadata for tree-model row and tablet batches; - omits per-row leader-cache hints for every table-model batch statement; - ignores redirect statuses without a non-empty device path and tolerates malformed nested statuses; - adds regression coverage for table-model tablets, table-model rows, tree-model batches, and malformed cache responses. ## Validation - Manual compilation of both changed production classes and both changed test classes against the existing DataNode artifacts. - `JUnitCore`: 23 tests passed for `IoTDBDataNodeReceiverTest` and `LeaderCacheUtilsTest`. - `mvn -pl iotdb-core/datanode spotless:check '-DskipTests' '-Dcheckstyle.skip=true'` passed. - `git diff --check` passed. The normal Maven test invocation is blocked by pre-existing stale cross-module generated artifacts/dependencies in the checkout (`TypeServices`, ANTLR, and Thrift symbols in unmodified files); the changed classes compile independently and the targeted tests pass. -- 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]
