Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
xiaofang li
MeterSphere
Commits
83b4264a
Commit
83b4264a
authored
3 years ago
by
Captain.B
Committed by
刘瑞斌
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
refactor: 验证资源池方式采用非事务方式
parent
5e8dc975
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
backend/src/main/java/io/metersphere/service/NodeResourcePoolService.java
+2
-0
.../java/io/metersphere/service/NodeResourcePoolService.java
backend/src/main/java/io/metersphere/xpack
+1
-1
backend/src/main/java/io/metersphere/xpack
with
3 additions
and
1 deletion
+3
-1
backend/src/main/java/io/metersphere/service/NodeResourcePoolService.java
+
2
-
0
View file @
83b4264a
...
...
@@ -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"
));
...
...
This diff is collapsed.
Click to expand it.
xpack
@
ca9bd63b
Compare
28ecc93b
...
ca9bd63b
Subproject commit
28ecc93bc3da92780fefde127e72ab2bd743052f
Subproject commit
ca9bd63b69870cb3f937719fa1addcfe2f732b38
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help