wjuxiao opened a new issue, #6726:
URL: https://github.com/apache/incubator-seata/issues/6726

   <!-- Please do not use this issue template to report security 
vulnerabilities but refer to our [security 
policy](https://github.com/seata/seata/security/policy). -->
   
   - [x ] I have searched the [issues](https://github.com/seata/seata/issues) 
of this repository and believe that this is not a duplicate.
   
   ### Ⅰ. Issue Description
   
   I'm trying to replace RMHandlerTCC, but it doesn't work with spi.
   
   ### Ⅱ. Describe what happened
   This method implementation overrides the custom class at load time.
   ```
      // org.apache.seata.rm.DefaultRMHandler#initRMHandlers
       protected void initRMHandlers() {
           List<AbstractRMHandler> allRMHandlers = 
EnhancedServiceLoader.loadAll(AbstractRMHandler.class);
           if (CollectionUtils.isNotEmpty(allRMHandlers)) {
               for (AbstractRMHandler rmHandler : allRMHandlers) {
                   allRMHandlersMap.put(rmHandler.getBranchType(), rmHandler);
               }
           }
       }
   ```
   
   ### Ⅲ. Describe what you expected to happen
   RMHandlerTCC can be customized normally.
   
   ### Ⅳ. How to reproduce it (as minimally and precisely as possible)
   
   1. xxx
   2. xxx
   3. xxx
   
   Minimal yet complete reproducer code (or URL to code):
   
   
   
   ### Ⅴ. Anything else we need to know?
   
   
   ### Ⅵ. Environment:
   
   - JDK version(e.g. `java -version`): 17
   - Seata client/server version:  2.0.0
   - Database version:
   - OS(e.g. `uname -a`):
   - Others:


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to