Commit 83b4264a authored by Captain.B's avatar Captain.B Committed by 刘瑞斌
Browse files

refactor: 验证资源池方式采用非事务方式

parent 5e8dc975
No related merge requests found
Showing with 3 additions and 1 deletion
+3 -1
......@@ -16,6 +16,7 @@ import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.client.RestTemplate;
......@@ -37,6 +38,7 @@ public class NodeResourcePoolService {
@Resource
private TestResourceMapper testResourceMapper;
@Transactional(propagation = Propagation.NOT_SUPPORTED)
public boolean validate(TestResourcePoolDTO testResourcePool) {
if (CollectionUtils.isEmpty(testResourcePool.getResources())) {
MSException.throwException(Translator.get("no_nodes_message"));
......
Subproject commit 28ecc93bc3da92780fefde127e72ab2bd743052f
Subproject commit ca9bd63b69870cb3f937719fa1addcfe2f732b38
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment