Caideyipi opened a new pull request, #19171: URL: https://github.com/apache/iotdb/pull/19171
## Summary Prevent tree-model LAST cache initialization, update, and invalidation from repopulating the schema cache after schema deletion. Schema cache population remains on the protected schema acquisition and creation paths. Available incident logs do not establish that a concurrent LAST query triggered the reported symptom. ## Known limitation and follow-up An older LAST query can still publish its result to the last-value cache after a same-name schema is dropped and recreated. Complete protection requires capturing a schema-generation token during planning, propagating it through distributed plan serialization, and validating it during cache initialization and asynchronous completion on every DataNode and Region. That path crosses schema metadata lifecycle, distributed plan transport, concurrent cache state, and multi-node/multi-Region tests. It is substantially broader than separating schema-cache writes from last-cache updates, so it is deferred to a dedicated follow-up. ## Changed paths - `iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/fetcher/cache/TableDeviceCacheEntry.java` - `iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/fetcher/cache/TableDeviceSchemaCache.java` - `iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/relational/metadata/fetcher/cache/TreeDeviceSchemaCacheManager.java` - `iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/execution/operator/process/last/AbstractUpdateLastCacheOperator.java` - `iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/InsertRowNode.java` - `iotdb-core/datanode/src/main/java/org/apache/iotdb/db/queryengine/plan/planner/plan/node/write/InsertTabletNode.java` - `iotdb-core/datanode/src/main/java/org/apache/iotdb/db/storageengine/dataregion/DataRegion.java` - `iotdb-core/datanode/src/test/java/org/apache/iotdb/db/metadata/cache/TreeDeviceSchemaCacheManagerTest.java` ## Verification - `mvn spotless:apply -P with-integration-tests -pl iotdb-core/datanode` passed. - `git diff --check` passed. - Local clean DataNode reactor tests passed: 20 tests, 0 failures, 0 errors; DataNode main and test sources compiled. - Full server integration tests, master runtime validation, and field validation were not run. -- 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]
