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
a4b189de
Unverified
Commit
a4b189de
authored
Oct 08, 2023
by
ZackYoung
Committed by
GitHub
Oct 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Fix]Fix some bug (#2355)
* add read checkpoint * optimize sse complete * optimize sse complete * update MysqlCdcSource * update checkpoint read * update checkpoint read * fix_some_bug
parent
a4210381
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
12 deletions
+13
-12
CheckpointRead.java
.../main/java/org/dinky/flink/checkpoint/CheckpointRead.java
+0
-1
MysqlCdcSource.java
...ava/org/dinky/flink/checkpoint/source/MysqlCdcSource.java
+6
-5
DagDataNode.tsx
dinky-web/src/components/FlinkDag/component/DagDataNode.tsx
+4
-3
index.tsx
dinky-web/src/components/FlinkDag/index.tsx
+2
-2
StatusTag.tsx
dinky-web/src/components/JobTags/StatusTag.tsx
+1
-1
No files found.
dinky-client/dinky-client-base/src/main/java/org/dinky/flink/checkpoint/CheckpointRead.java
View file @
a4b189de
...
@@ -112,7 +112,6 @@ public class CheckpointRead implements CheckpointReadInterface {
...
@@ -112,7 +112,6 @@ public class CheckpointRead implements CheckpointReadInterface {
new
RegisteredOperatorStateBackendMetaInfo
<>(
stateMetaInfoSnapshot
));
new
RegisteredOperatorStateBackendMetaInfo
<>(
stateMetaInfoSnapshot
));
;
;
deserializeOperatorStateValues
(
partitionableListState
,
in
,
value
);
deserializeOperatorStateValues
(
partitionableListState
,
in
,
value
);
partitionableListState
.
get
().
forEach
(
System
.
out
::
println
);
// get checkpoint data
// get checkpoint data
CheckpointReadFactory
.
getTable
(
partitionableListState
)
CheckpointReadFactory
.
getTable
(
partitionableListState
)
.
ifPresent
(
tableVO
->
map
.
put
(
key
,
tableVO
));
.
ifPresent
(
tableVO
->
map
.
put
(
key
,
tableVO
));
...
...
dinky-client/dinky-client-base/src/main/java/org/dinky/flink/checkpoint/source/MysqlCdcSource.java
View file @
a4b189de
...
@@ -30,6 +30,7 @@ import com.ververica.cdc.connectors.mysql.source.split.MySqlSplit;
...
@@ -30,6 +30,7 @@ import com.ververica.cdc.connectors.mysql.source.split.MySqlSplit;
import
com.ververica.cdc.connectors.mysql.source.split.MySqlSplitSerializer
;
import
com.ververica.cdc.connectors.mysql.source.split.MySqlSplitSerializer
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.util.StrUtil
;
import
cn.hutool.json.JSONArray
;
import
cn.hutool.json.JSONArray
;
import
cn.hutool.json.JSONObject
;
import
cn.hutool.json.JSONObject
;
import
cn.hutool.json.JSONUtil
;
import
cn.hutool.json.JSONUtil
;
...
@@ -82,12 +83,12 @@ public class MysqlCdcSource extends BaseCheckpointSource<MySqlSplit> {
...
@@ -82,12 +83,12 @@ public class MysqlCdcSource extends BaseCheckpointSource<MySqlSplit> {
JSONUtil
.
toJsonPrettyStr
(
split
.
getFinishedSnapshotSplitInfos
()));
JSONUtil
.
toJsonPrettyStr
(
split
.
getFinishedSnapshotSplitInfos
()));
}
else
if
(
d
.
isSnapshotSplit
())
{
}
else
if
(
d
.
isSnapshotSplit
())
{
MySqlSnapshotSplit
split
=
d
.
asSnapshotSplit
();
MySqlSnapshotSplit
split
=
d
.
asSnapshotSplit
();
jsonObject
.
set
(
"table-id"
,
split
.
getTableId
());
jsonObject
.
set
(
"table-id"
,
split
.
getTableId
()
.
identifier
()
);
jsonObject
.
set
(
"split-id"
,
split
.
splitId
());
jsonObject
.
set
(
"split-id"
,
split
.
splitId
());
jsonObject
.
set
(
"split-key-type"
,
split
.
getSplitKeyType
());
jsonObject
.
set
(
"split-key-type"
,
split
.
getSplitKeyType
()
.
toString
()
);
jsonObject
.
set
(
"split-start"
,
split
.
getSplitStart
(
));
jsonObject
.
set
(
"split-start"
,
JSONUtil
.
toJsonStr
(
split
.
getSplitStart
()
));
jsonObject
.
set
(
"split-end"
,
split
.
getSplitEnd
(
));
jsonObject
.
set
(
"split-end"
,
JSONUtil
.
toJsonStr
(
split
.
getSplitEnd
()
));
jsonObject
.
set
(
"high-watermark"
,
split
.
getHighWatermark
(
));
jsonObject
.
set
(
"high-watermark"
,
StrUtil
.
toString
(
split
.
getHighWatermark
()
));
}
}
return
jsonObject
;
return
jsonObject
;
...
...
dinky-web/src/components/FlinkDag/component/DagDataNode.tsx
View file @
a4b189de
...
@@ -76,6 +76,7 @@ const DagDataNode = (props: any) => {
...
@@ -76,6 +76,7 @@ const DagDataNode = (props: any) => {
);
);
}
}
const
backpressure
=
data
.
backpressure
;
return
(
return
(
<
Card
<
Card
style=
{
{
width
:
'250px'
,
padding
:
0
,
margin
:
0
,
height
:
140
}
}
style=
{
{
width
:
'250px'
,
padding
:
0
,
margin
:
0
,
height
:
140
}
}
...
@@ -97,13 +98,13 @@ const DagDataNode = (props: any) => {
...
@@ -97,13 +98,13 @@ const DagDataNode = (props: any) => {
<
Text
style=
{
{
display
:
'inline-flex'
,
alignItems
:
'center'
}
}
type=
'secondary'
>
<
Text
style=
{
{
display
:
'inline-flex'
,
alignItems
:
'center'
}
}
type=
'secondary'
>
{
' '
}
{
' '
}
{
l
(
'devops.baseinfo.busy'
)
}
:
{
l
(
'devops.baseinfo.busy'
)
}
:
{
renderRatio
(
data
.
backpressure
.
subtasks
[
0
]?.
busyRatio
,
false
)
}
{
renderRatio
(
backpressure
?
backpressure
.
subtasks
[
0
]?.
busyRatio
:
0
,
false
)
}
</
Text
>
</
Text
>
</
Col
>
</
Col
>
<
Col
flex=
'auto'
>
<
Col
flex=
'auto'
>
<
Text
type=
'secondary'
ellipsis
>
<
Text
type=
'secondary'
ellipsis
>
{
l
(
'devops.baseinfo.backpressure'
)
}
:
{
l
(
'devops.baseinfo.backpressure'
)
}
:
<
StatusTag
status=
{
data
.
backpressure
.
status
}
bordered=
{
false
}
animation=
{
false
}
/>
<
StatusTag
status=
{
backpressure
?
backpressure
.
status
:
0
}
bordered=
{
false
}
animation=
{
false
}
/>
</
Text
>
</
Text
>
</
Col
>
</
Col
>
</
Row
>
</
Row
>
...
@@ -112,7 +113,7 @@ const DagDataNode = (props: any) => {
...
@@ -112,7 +113,7 @@ const DagDataNode = (props: any) => {
<
Col
flex=
'35%'
>
<
Col
flex=
'35%'
>
<
Text
style=
{
{
display
:
'inline-flex'
,
alignItems
:
'center'
}
}
type=
'secondary'
>
<
Text
style=
{
{
display
:
'inline-flex'
,
alignItems
:
'center'
}
}
type=
'secondary'
>
{
l
(
'devops.baseinfo.idle'
)
}
:
{
l
(
'devops.baseinfo.idle'
)
}
:
{
renderRatio
(
data
.
backpressure
.
subtasks
[
0
]?.
idleRatio
,
true
)
}
{
renderRatio
(
backpressure
?
backpressure
.
subtasks
[
0
]?.
idleRatio
:
0
,
true
)
}
</
Text
>
</
Text
>
</
Col
>
</
Col
>
<
Col
flex=
'auto'
>
<
Col
flex=
'auto'
>
...
...
dinky-web/src/components/FlinkDag/index.tsx
View file @
a4b189de
...
@@ -156,7 +156,7 @@ const FlinkDag = (props: DagProps) => {
...
@@ -156,7 +156,7 @@ const FlinkDag = (props: DagProps) => {
const
[
selectPath
,
setSelectPath
]
=
useState
<
string
>
(
''
);
const
[
selectPath
,
setSelectPath
]
=
useState
<
string
>
(
''
);
const
key
=
id
+
selectPath
;
const
key
=
id
+
selectPath
;
const
[
itemChildren
,
setItemChildren
]
=
useState
({[
key
]:
[]
as
TabsProps
[
'items'
]});
const
[
itemChildren
,
setItemChildren
]
=
useState
({[
key
]:
[]
as
TabsProps
[
'items'
]});
const
checkpointArray
=
(
checkPoints
.
history
as
any
[]).
filter
(
x
=>
x
.
status
===
"COMPLETED"
).
map
(
x
=>
{
const
checkpointArray
=
(
(
checkPoints
.
history
??
[])
as
any
[]).
filter
(
x
=>
x
.
status
===
"COMPLETED"
).
map
(
x
=>
{
return
{
checkpointType
:
x
.
checkpoint_type
,
path
:
x
.
external_path
,
id
:
x
.
id
}
return
{
checkpointType
:
x
.
checkpoint_type
,
path
:
x
.
external_path
,
id
:
x
.
id
}
});
});
useEffect
(()
=>
{
useEffect
(()
=>
{
...
@@ -241,7 +241,7 @@ const FlinkDag = (props: DagProps) => {
...
@@ -241,7 +241,7 @@ const FlinkDag = (props: DagProps) => {
},
},
{
{
key
:
'2'
,
key
:
'2'
,
label
:
'CheckPoint
Read'
,
label
:
'CheckPointRead'
,
children
:
renderCheckpoint
(
currentSelect
?.
id
),
children
:
renderCheckpoint
(
currentSelect
?.
id
),
},
},
]
}
tabBarGutter=
{
10
}
/>
}
]
}
tabBarGutter=
{
10
}
/>
}
...
...
dinky-web/src/components/JobTags/StatusTag.tsx
View file @
a4b189de
...
@@ -98,7 +98,7 @@ const StatusTag = (props: StatusTagProps) => {
...
@@ -98,7 +98,7 @@ const StatusTag = (props: StatusTagProps) => {
return
{
return
{
icon
:
<
SyncOutlined
spin
/>,
icon
:
<
SyncOutlined
spin
/>,
color
:
'default'
,
color
:
'default'
,
text
:
'UNKNOWN
Status
'
text
:
'UNKNOWN'
};
};
}
}
};
};
...
...
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