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

   ## Description
   
   ### Reject missing SchemaRegion state machines
   
   SchemaRegionConsensusImpl now resolves the ISchemaRegion before constructing 
its state machine. If the region does not exist, it logs and throws an 
IllegalArgumentException containing the consensus group id instead of passing 
null into SchemaRegionStateMachine and eventually surfacing an NPE.
   
   This keeps the SchemaRegion path consistent with the existing DataRegion 
state-machine factory behavior.
   
   ### Localized diagnostics
   
   Added matching English and Chinese diagnostic messages for the missing 
SchemaRegion case.
   
   ### Verification
   
   - mvn spotless:apply -pl iotdb-core/datanode
   - Compiled the changed production source with both en and zh i18n sources 
using JDK 17 and the Maven-resolved dependency classpath.
   - Invoked the missing-Region factory path and verified the exact 
IllegalArgumentException type and message.
   
   Full local Maven compilation was blocked by unrelated generated-source 
issues: a missing javax.annotation dependency in generated Thrift code and 
existing FMPP-generated source/API mismatches.
   
   <hr>
   
   This PR has:
   - [x] been self-reviewed.
   
   <hr>
   
   ##### Key changed/added classes (or packages if there are too many classes) 
in this PR
   
   - SchemaRegionConsensusImpl
   - DataNodeSchemaMessages


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