qiuyanjun888 commented on PR #18349:
URL: 
https://github.com/apache/dolphinscheduler/pull/18349#issuecomment-5650339634

   @SbloodyS
   
   > **Preserve support for configuration-defined worker groups**
   
   Addressed in 859fa13b2d8c4bd638a2f599442e244ea07698bc. Environment relation 
creation now supplements the batch database lookup with configuration-defined 
groups discovered through `getConfigWorkerGroupPageDetail()`. These groups 
retain their names with a NULL `worker_group_id`; database-backed groups retain 
their stable IDs, including when a configuration-defined group has the same 
name. Updates validate only newly added relations, so an existing group being 
offline no longer prevents configuration or description changes. Newly added 
groups absent from both sources are still rejected.
   
   > **Handle unmatched legacy relations before enforcing NOT NULL**
   
   Addressed in the same commit. The MySQL and PostgreSQL upgrade scripts 
backfill matching IDs and leave unmatched relations intact with NULL IDs, 
without enforcing NOT NULL. This preserves configuration-defined groups and 
unmatched legacy names without inventing IDs or dropping relations. The MySQL, 
PostgreSQL, and H2 fresh-install schemas now use the same nullable 
representation.
   
   Validation: all 41 focused DAO/API tests passed, including the new 
regression tests, and Spotless checks passed. I also reproduced the original 
migration failures in PostgreSQL 15.2 and MySQL 8.0, then verified that the 
updated scripts backfill matching IDs, preserve unmatched rows and existing 
IDs, and that the fresh-install relation tables accept configuration-defined 
groups without IDs.
   
   Replying to 
https://github.com/apache/dolphinscheduler/pull/18349#pullrequestreview-5129004155.
   


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