From 31668bee5ac551ab46130a91d707a24445807e3b Mon Sep 17 00:00:00 2001 From: hardy <2545433047@qq.com> Date: Fri, 18 Sep 2026 16:24:04 +0800 Subject: [PATCH] fix(TAP-12896): do not treat 0/0 as snapshot complete on sync nodes Queued child tables report tableTotal=0 and snapshotTableTotal=0. The previous equality check drew a full progress bar before snapshot started. Require tableTotal > 0 before marking 100%. --- packages/dag/src/components/monitor/Node.vue | 2 +- .../dag/src/components/monitor/components/NodeDetailDialog.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/dag/src/components/monitor/Node.vue b/packages/dag/src/components/monitor/Node.vue index 3098099006..aa7f788f4d 100644 --- a/packages/dag/src/components/monitor/Node.vue +++ b/packages/dag/src/components/monitor/Node.vue @@ -165,7 +165,7 @@ const initialSyncProcess = computed(() => { } = props.sample || {} if (props.syncType === 'migrate') return tableTotal ? Math.round((snapshotTableTotal / tableTotal) * 100) : 0 - if (snapshotTableTotal === tableTotal) return 100 + if (tableTotal > 0 && snapshotTableTotal === tableTotal) return 100 return snapshotRowTotal ? Math.round((snapshotInsertRowTotal / snapshotRowTotal) * 100) : 0 diff --git a/packages/dag/src/components/monitor/components/NodeDetailDialog.vue b/packages/dag/src/components/monitor/components/NodeDetailDialog.vue index 1c68810abf..c7c48ed038 100644 --- a/packages/dag/src/components/monitor/components/NodeDetailDialog.vue +++ b/packages/dag/src/components/monitor/components/NodeDetailDialog.vue @@ -318,7 +318,7 @@ const totalDataPercentage = computed(() => { text: `${snapshotTableTotal}/${tableTotal}`, } : { val: 0, text: '' } - if (snapshotTableTotal === tableTotal) + if (tableTotal > 0 && snapshotTableTotal === tableTotal) return { val: 100, text: '',