Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dinky
Project
Project
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
wangpeng
dinky
Commits
88935858
Unverified
Commit
88935858
authored
Jan 18, 2024
by
Zzm0809
Committed by
GitHub
Jan 18, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fix-3021] fix jobmanager log render logical error (#3022)
parent
11be8fb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
JobManagerLogsTab.tsx
...DevOps/JobDetail/JobLogs/components/JobManagerLogsTab.tsx
+13
-3
No files found.
dinky-web/src/pages/DevOps/JobDetail/JobLogs/components/JobManagerLogsTab.tsx
View file @
88935858
...
@@ -25,6 +25,12 @@ import { ProCard } from '@ant-design/pro-components';
...
@@ -25,6 +25,12 @@ import { ProCard } from '@ant-design/pro-components';
import
{
Spin
}
from
'antd'
;
import
{
Spin
}
from
'antd'
;
import
{
useState
}
from
'react'
;
import
{
useState
}
from
'react'
;
type
ThreadDumpMessage
=
{
stringifiedThreadInfo
:
string
;
threadName
:
string
;
}
const
JobManagerLogsTab
=
(
props
:
JobProps
)
=>
{
const
JobManagerLogsTab
=
(
props
:
JobProps
)
=>
{
const
{
jobDetail
}
=
props
;
const
{
jobDetail
}
=
props
;
const
jmaddr
=
jobDetail
?.
history
?.
jobManagerAddress
;
const
jmaddr
=
jobDetail
?.
history
?.
jobManagerAddress
;
...
@@ -63,9 +69,13 @@ const JobManagerLogsTab = (props: JobProps) => {
...
@@ -63,9 +69,13 @@ const JobManagerLogsTab = (props: JobProps) => {
if
(
!
ur
.
data
)
{
if
(
!
ur
.
data
)
{
return
;
return
;
}
else
{
}
else
{
return
(
JSON
.
parse
(
ur
.
data
)[
'threadInfos'
]
as
any
[])
const
threadInfos
=
JSON
.
parse
(
ur
.
data
)
&&
JSON
.
parse
(
ur
.
data
)[
'threadInfos'
]
as
ThreadDumpMessage
[];
.
map
((
x
)
=>
x
[
'stringifiedThreadInfo'
])
if
(
!
threadInfos
)
{
.
join
(
''
);
return
'No Log'
;
}
else
if
(
threadInfos
&&
threadInfos
.
length
===
0
)
{
return
'No Thread Info'
;
}
return
threadInfos
.
map
((
x
:
ThreadDumpMessage
)
=>
x
.
stringifiedThreadInfo
).
join
(
''
);
}
}
};
};
...
...
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