You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampark.apache.org by be...@apache.org on 2023/04/08 03:28:36 UTC
[incubator-streampark] branch dev updated: [Fix] parse key with fraction suffix to float (#2588)
This is an automated email from the ASF dual-hosted git repository.
benjobs pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampark.git
The following commit(s) were added to refs/heads/dev by this push:
new 80a0d32b1 [Fix] parse key with fraction suffix to float (#2588)
80a0d32b1 is described below
commit 80a0d32b1d556d6733578280dfb167f5882fada1
Author: totoro <zh...@foxmail.com>
AuthorDate: Sat Apr 8 11:28:31 2023 +0800
[Fix] parse key with fraction suffix to float (#2588)
---
.../src/views/flink/app/hooks/useEdit.ts | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
diff --git a/streampark-console/streampark-console-webapp/src/views/flink/app/hooks/useEdit.ts b/streampark-console/streampark-console-webapp/src/views/flink/app/hooks/useEdit.ts
index 1fce46a00..06898e123 100644
--- a/streampark-console/streampark-console-webapp/src/views/flink/app/hooks/useEdit.ts
+++ b/streampark-console/streampark-console-webapp/src/views/flink/app/hooks/useEdit.ts
@@ -75,11 +75,22 @@ export const useEdit = () => {
} else {
if (k.startsWith('jobmanager.memory.')) {
memoryItems.jmMemoryItems.push(key);
- fieldValueOptions.jmOptionsItem[key] = parseFloat(v);
+ if (k === 'jobmanager.memory.jvm-overhead.fraction') {
+ fieldValueOptions.jmOptionsItem[key] = parseFloat(v);
+ } else {
+ fieldValueOptions.jmOptionsItem[key] = parseInt(v);
+ }
}
if (k.startsWith('taskmanager.memory.')) {
memoryItems.tmMemoryItems.push(key);
- fieldValueOptions.tmOptionsItem[key] = parseFloat(v);
+ if (
+ k === 'taskmanager.memory.managed.fraction' ||
+ k === 'taskmanager.memory.jvm-overhead.fraction'
+ ) {
+ fieldValueOptions.tmOptionsItem[key] = parseFloat(v);
+ } else {
+ fieldValueOptions.tmOptionsItem[key] = parseInt(v);
+ }
}
}
} else {