Skip to content

fix:TAP-11425 Rebuilding cache keeps showing as running.#3183

Open
weiliang110100 wants to merge 1 commit intodevelopfrom
fix-TAP-11425-develop
Open

fix:TAP-11425 Rebuilding cache keeps showing as running.#3183
weiliang110100 wants to merge 1 commit intodevelopfrom
fix-TAP-11425-develop

Conversation

@weiliang110100
Copy link
Copy Markdown
Contributor

No description provided.

@augmentcode
Copy link
Copy Markdown

augmentcode Bot commented Apr 30, 2026

🤖 Augment PR Summary

Summary: Adjusts merge-table cache rebuild execution so rebuild flows don’t appear to run indefinitely.
Changes:

  • Separates initial-sync snapshot execution from merge-cache rebuild triggering in startSourceRunner.
  • Extends doSnapshotWithControl with a needRun flag to allow controlled no-op participation in snapshot ordering.
  • Refactors re-full-run checks into helpers (isReFullRunTask/isReFullRunTableNode) and updates unit tests for the new method signature.

🤖 Was this summary useful? React with 👍 or 👎

Copy link
Copy Markdown

@augmentcode augmentcode Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 2 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

}

protected void doSnapshotWithControl(List<String> tableList) throws Throwable {
protected void doSnapshotWithControl(List<String> tableList,boolean needRun) throws Throwable {
Copy link
Copy Markdown

@augmentcode augmentcode Bot Apr 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needRun is currently ignored for the isSourceAndTarget() fast-path, so doSnapshot(tableList) will still execute even when needRun is false (HazelcastSourcePdkDataNode.java:430). This could trigger an unexpected snapshot when the task is reFullRun but this node/table isn’t meant to rebuild cache.

Severity: medium

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.


// Verify
verify(sourceNode, times(1)).doSnapshotWithControl(anyList());
verify(sourceNode, times(1)).doSnapshotWithControl(anyList(),anyBoolean());
Copy link
Copy Markdown

@augmentcode augmentcode Bot Apr 30, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test now verifies doSnapshotWithControl(..., anyBoolean()), but it doesn’t assert the needRun value, so regressions in the rebuild/skip branching may slip through (HazelcastSourcePdkDataNodeTest.java:4082). Consider adding coverage for the isReFullRunTask()==true + checkRebuildMergeTableCache(true)==false path where needRun should be false.

Severity: low

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

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