Skip to content

[2.0] Fixes #37345: send ReindexStopUnderLoadIT's stop while the reindex is still running - #37964

Merged
mohityadav766 merged 1 commit into
2.0from
backport/2.0/pr-37918
Nov 17, 2026
Merged

mohityadav766 merged 1 commit into
2.0from
backport/2.0/pr-37918

Conversation

@gh-bot-collate

@gh-bot-collate gh-bot-collate Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

Automated backport of #37918 to 2.0.

Source PR #37918
Author @mohityadav766
Merge commit fa2eb13a9978e53c7ff420014f2fbcc3c9c067ad
Method Clean cherry-pick — identical to the commit on main.

Opened from openmetadata-collate, which holds the credentials needed to open a PR here. It merges itself once this branch's required checks pass — no review needed. If a check fails it stays open and the author of #37918 is asked to look.

resolver run

RetriggerView in GreptileConfidence Score: 4/5

The PR appears safe to merge, with a non-blocking gap in how the test proves it stopped active work.

Findings

  1. P2 Stop can miss active work ▶

Summary

Changes ReindexStopUnderLoadIT to scale its warm-up with the seeded table count.

  • The stop-under-load test scales its warm-up to the table cohort.

Reviews (1) · Last reviewed commit: "test(it): send ReindexStopUnderLoadIT's ..." · Reviewed by Greptile

…ll running (#37918)

At the nightly fast tier's jpw.sizeFactor=0.05 the test seeds 500 tables and the whole
reindex finishes in about 6 s, but the stop went out a fixed 8 s after the run registered.
When it arrived after the job had finished, the server's async stop thread threw "There is
no job running for the application", and in the embedded lane Awaitility rethrew that
uncaught exception in the test. Scale the warm-up with the cohort: 8 s at full size as
before, and at least 2 s.

(cherry picked from commit fa2eb13)
@gh-bot-collate gh-bot-collate Bot added the safe to test Add this label to run secure Github workflows on PRs label Nov 17, 2026
@gh-bot-collate

Copy link
Copy Markdown
Author

🤖 This backport will not merge itself: 2.0 has no required status checks, so there is nothing for auto-merge to wait on. Merge it by hand once CI is green.

Comment on lines +56 to +57
private static final Duration WARMUP =
Duration.ofMillis(Math.max(2_000L, 8_000L * SEED_TABLES / FULL_SIZE_TABLES));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Stop can miss active work

If a smaller cohort or faster server finishes indexing before WARMUP ends, this test still passes without stopping active work. waitForRunStartedSince only checks the run's timestamp, and the final assertion accepts normal completion. Scaling the delay improves the timing but does not close this coverage gap.

Wait for indexing progress while the run is still active, then send stop immediately and check that it stopped.

@mohityadav766
mohityadav766 merged commit d90e9dd into 2.0 Nov 17, 2026
61 of 70 checks passed
@mohityadav766
mohityadav766 deleted the backport/2.0/pr-37918 branch November 17, 2026 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to test Add this label to run secure Github workflows on PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant