Skip to content

[web-console] Fix flaky log-search highlight race in LogList - #6777

Merged
blp merged 1 commit into
mainfrom
fix-log-search-race
Aug 2, 2026
Merged

[web-console] Fix flaky log-search highlight race in LogList#6777
blp merged 1 commit into
mainfrom
fix-log-search-race

Conversation

@blp

@blp blp commented Jul 30, 2026

Copy link
Copy Markdown
Member

virtua scrolls to an estimated offset for rows outside the rendered window and mounts the row over several frames, but the post-scroll repaint only scheduled a single requestAnimationFrame — if the row wasn't mounted on that frame, the highlight was dropped with no retry beyond an incidental onscroll. Retry every frame until the row actually mounts (bounded) instead of assuming one frame is enough.

PR #6695 papered over this by bumping the test's poll timeout, which didn't fix the underlying race and it flaked again in CI.

@Karakatiza666 Claude claims this fixes it and claims that it was able to test it. This is outside the scope of my knowledge, so I really need your judgment on it.

virtua scrolls to an estimated offset for rows outside the rendered
window and mounts the row over several frames, but the post-scroll
repaint only scheduled a single requestAnimationFrame — if the row
wasn't mounted on that frame, the highlight was dropped with no
retry beyond an incidental onscroll. Retry every frame until the row
actually mounts (bounded) instead of assuming one frame is enough.

PR #6695 papered over this by bumping the test's poll timeout, which
didn't fix the underlying race and it flaked again in CI.

Signed-off-by: Ben Pfaff <blp@feldera.com>
@blp
blp requested a review from Karakatiza666 July 30, 2026 23:05
@blp blp self-assigned this Jul 30, 2026
@blp blp added bug Something isn't working Web Console Related to the browser based UI CI/CD labels Jul 30, 2026

@mythical-fred mythical-fred left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@Karakatiza666

Copy link
Copy Markdown
Contributor

If the diagnosis is correct this is a decent fix. Later I will see if I can organize the code better.

@blp
blp added this pull request to the merge queue Jul 31, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 31, 2026
@blp
blp added this pull request to the merge queue Aug 2, 2026
Merged via the queue into main with commit 4288f15 Aug 2, 2026
1 check passed
@blp
blp deleted the fix-log-search-race branch August 2, 2026 23:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working CI/CD Web Console Related to the browser based UI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants