dengliming opened a new pull request, #7247:
URL: https://github.com/apache/shenyu/pull/7247

   ## Summary
   - Add transaction boundaries to both proxy-selector import entry points.
   - Stage remapped IDs locally and publish them to the import context only 
after commit, including when an outer transaction rolls back.
   - Avoid mutating source DTO IDs/namespaces, so failed imports remain 
retryable.
   - Preserve namespace when converting imported DTOs to entities; otherwise 
even valid records fail the namespace NOT NULL constraint.
   
   Fixes #6696
   
   ## Validation
   - `./mvnw -pl shenyu-admin -am -DskipTests=false -Dcheckstyle.skip=false 
-Dtest=ProxySelectorServiceTest,ProxySelectorImportIntegrationTest 
-DfailIfNoTests=false test` (Java 17): passed, including Checkstyle.
   - H2 tests cover rollback after the second insert fails for both entry 
points, unchanged context/input, successful committed mapping, and 
outer-transaction rollback.
   


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