Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
liyuan
byit-myth-job
Commits
44bf9310
Commit
44bf9310
authored
Nov 05, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
错误日志上传
parent
5feb60ca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ClientRpcUtil.java
...pc-client/src/main/java/com/byit/utils/ClientRpcUtil.java
+2
-1
No files found.
byit-plugin-core/myth-plugin-rpc-client/src/main/java/com/byit/utils/ClientRpcUtil.java
View file @
44bf9310
...
@@ -59,10 +59,11 @@ public class ClientRpcUtil {
...
@@ -59,10 +59,11 @@ public class ClientRpcUtil {
//当前重试次数 小于等于总共的重试次数时
//当前重试次数 小于等于总共的重试次数时
if
(
thisRetryCount
<=
retryTotalCount
)
{
if
(
thisRetryCount
<=
retryTotalCount
)
{
String
format
=
String
.
format
(
"%s,plugin-rpc通道建立时出现异常,异常信息为:%s,开始第%s次重试!"
,
host
,
RPCLogUtil
.
getMessage
(
e
),
thisRetryCount
);
String
format
=
String
.
format
(
"%s,plugin-rpc通道建立时出现异常,异常信息为:%s,开始第%s次重试!"
,
host
,
RPCLogUtil
.
getMessage
(
e
),
thisRetryCount
);
String
redisFormat
=
String
.
format
(
"与执行服务器[%s]建立通道时出现异常,开始第%s次重试!"
,
host
,
thisRetryCount
);
log
.
error
(
format
);
log
.
error
(
format
);
//redis模板
//redis模板
StringRedisTemplate
stringRedisTemplate
=
RpcSpringUtil
.
getBean
(
StringRedisTemplate
.
class
);
StringRedisTemplate
stringRedisTemplate
=
RpcSpringUtil
.
getBean
(
StringRedisTemplate
.
class
);
RunLog
runLog
=
RunLog
.
builder
().
runLog
(
f
ormat
).
isEnd
(
false
).
build
();
RunLog
runLog
=
RunLog
.
builder
().
runLog
(
redisF
ormat
).
isEnd
(
false
).
build
();
stringRedisTemplate
.
opsForList
().
rightPush
(
runKey
,
JSON
.
toJSONString
(
runLog
,
WriteClassName
));
stringRedisTemplate
.
opsForList
().
rightPush
(
runKey
,
JSON
.
toJSONString
(
runLog
,
WriteClassName
));
Thread
.
sleep
(
1000
*
thisRetryCount
);
Thread
.
sleep
(
1000
*
thisRetryCount
);
retryRpcHost
(
client
,
host
,
runKey
,
retryTotalCount
,
++
thisRetryCount
);
retryRpcHost
(
client
,
host
,
runKey
,
retryTotalCount
,
++
thisRetryCount
);
...
...
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