Skip to content

fix(TAP-12896): do not treat 0/0 as snapshot complete on sync nodes - #634

Merged
weiliang110100 merged 1 commit into
developfrom
fix-TAP-12896-develop
Oct 10, 2026
Merged

weiliang110100 merged 1 commit into
developfrom
fix-TAP-12896-develop

Conversation

@weiliang110100

Copy link
Copy Markdown
Contributor

Summary

  • Sync monitor progress used snapshotTableTotal === tableTotal to mark 100%.
  • Queued child tables (merge snapshot order) report 0/0 before snapshot starts, so the bar was drawn full.
  • Require tableTotal > 0 before treating the node as snapshot complete. Migrate already used tableTotal ? percent : 0.

Jira: https://tapdata.atlassian.net/browse/TAP-12896

TM companion: tapdata fix-TAP-12896-develop (unset nodeCurrentEventTimestamp on reset).

Test Plan

  • Open a sync merge task after reset; child tables that have not started snapshot should show 0%, not a full bar.
  • After a table actually finishes snapshot (tableTotal > 0 and counts match), progress is still 100%.
  • Node detail dialog uses the same rule.

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%.
@weiliang110100
weiliang110100 merged commit 8388aab into develop Oct 10, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant