yyqdbngt opened a new pull request, #1141:
URL: https://github.com/apache/rocketmq-dashboard/pull/1141

   Four MyBatis-Plus repositories perform a non-atomic read-check-write (select 
by id, then insert or update). Under concurrent writes two requests can both 
see a missing row and both insert (duplicate key), or a read can interleave 
between the two update writes.
   
   - `MybatisPlusSettingsRepository.saveGeneralSettings`
   - `MybatisPlusInstanceRepository.save`
   - `MybatisPlusAlertRepository.saveRule`
   - `MybatisPlusK8sCertRepository.save`
   
   Each write method is now annotated `@Transactional`, so the existence check 
and the insert/update run in the same transaction.
   


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