Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wj-datacenter-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jinan
wj-datacenter-platform
Commits
190ec639
Commit
190ec639
authored
Apr 19, 2025
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[add] 事件修改逻辑添加死锁重试
parent
674d6973
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
DataProcessServiceImpl.java
...wanji/datacenter/service/impl/DataProcessServiceImpl.java
+2
-2
logback-spring.xml
wj-datacenter-service/src/main/resources/logback-spring.xml
+1
-0
No files found.
wj-datacenter-service/src/main/java/net/wanji/datacenter/service/impl/DataProcessServiceImpl.java
View file @
190ec639
...
...
@@ -174,9 +174,9 @@ public class DataProcessServiceImpl implements DataProcessService {
log
.
warn
(
"检测到死锁,进行第 {} 次重试"
,
retryCount
);
try
{
// 等待一会,避免立刻冲突
Thread
.
sleep
(
3
00
);
Thread
.
sleep
(
5
00
);
}
catch
(
InterruptedException
ignored
)
{
log
.
warn
(
"检测到死锁, Thread.sleep
3
00ms,异常:{}"
,
ignored
);
log
.
warn
(
"检测到死锁, Thread.sleep
5
00ms,异常:{}"
,
ignored
);
}
}
}
...
...
wj-datacenter-service/src/main/resources/logback-spring.xml
View file @
190ec639
...
...
@@ -53,6 +53,7 @@
<file>
${LOG_PATH}/dataCenter/error.log
</file>
<filter
class=
"ch.qos.logback.classic.filter.ThresholdFilter"
>
<level>
ERROR
</level>
<level>
WARN
</level>
</filter>
>
<encoder>
<pattern>
${normal-pattern}
</pattern>
...
...
Write
Preview
Markdown
is supported
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