Caideyipi opened a new pull request, #18871:
URL: https://github.com/apache/iotdb/pull/18871

   ## Description
   
   Backport of #18861 (`a498d7d2a4608993c5c7d0c11f954e77b0554900`) to `dev/1.3`.
   
   Validate the shared measurement/alias namespace before aligned batch 
creation or merge in both Memory and PBTree schema engines. This rejects 
duplicate aliases and aliases that collide with another measurement before any 
schema mutation.
   
   Maintain direct measurement and non-view child counts so in-memory 
timeseries deletion avoids rescanning all children for each measurement. 
Include the counters in memory accounting and preserve cleanup behavior for 
nested devices, snapshots and logical views.
   
   ### Backport adaptations
   
   - Omit the table-model blacklist and device attribute store changes and 
their tests because those components do not exist in 1.3.
   - Adapt the regression tests to the 1.3 timeseries method names and snapshot 
callback signature.
   
   ### Validation
   
   - `mvn spotless:apply -pl iotdb-core/datanode`
   - `mvn test -pl iotdb-core/datanode -am 
-Dtest=MTreeBelowSGMemoryImplTest,SchemaRegionAliasAndTagTest 
-Dsurefire.failIfNoSpecifiedTests=false -DfailIfNoTests=false` — 45 tests 
passed, including all four Schema Engine test configurations.
   - `mvn test-compile -DskipTests`
   - `mvn test-compile -P with-zh-locale -DskipTests`
   
   This PR has:
   
   - [x] been self-reviewed.
   - [x] added comments explaining the intent of the code.
   - [x] added regression tests for alias validation, deletion and snapshot 
recovery.
   


-- 
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]

Reply via email to