This is an automated email from the ASF dual-hosted git repository.

chufenggao pushed a commit to branch 3.0.2-prepare
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/3.0.2-prepare by this push:
     new 309b5a94b8 fix this issue (#12281) (#12766)
309b5a94b8 is described below

commit 309b5a94b8760566dd414f28a770d237cddba153
Author: Eric Gao <[email protected]>
AuthorDate: Mon Nov 7 15:32:36 2022 +0800

    fix this issue (#12281) (#12766)
    
    Co-authored-by: calvin <[email protected]>
---
 .../org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java
 
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java
index 4ae08f91ab..2c0de56a94 100644
--- 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java
+++ 
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/UsersServiceImpl.java
@@ -137,7 +137,7 @@ public class UsersServiceImpl extends BaseServiceImpl 
implements UsersService {
      * @throws Exception exception
      */
     @Override
-    @Transactional
+    @Transactional(rollbackFor = Exception.class)
     public Map<String, Object> createUser(User loginUser,
                                           String userName,
                                           String userPassword,
@@ -177,7 +177,6 @@ public class UsersServiceImpl extends BaseServiceImpl 
implements UsersService {
         result.put(Constants.DATA_LIST, user);
         putMsg(result, Status.SUCCESS);
         return result;
-
     }
 
     @Override

Reply via email to