Repository navigation
[2.0] Fixes #37345: send ReindexStopUnderLoadIT's stop while the reindex is still running - #37964
Merged
Merged
Conversation
…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)
Author
|
🤖 This backport will not merge itself: |
9 of 12 tasks
Comment on lines
+56
to
+57
| private static final Duration WARMUP = | ||
| Duration.ofMillis(Math.max(2_000L, 8_000L * SEED_TABLES / FULL_SIZE_TABLES)); |
Contributor
There was a problem hiding this comment.
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.
Merged
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automated backport of #37918 to
2.0.fa2eb13a9978e53c7ff420014f2fbcc3c9c067admain.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
The PR appears safe to merge, with a non-blocking gap in how the test proves it stopped active work.
Findings
Summary
Changes
ReindexStopUnderLoadITto scale its warm-up with the seeded table count.Reviews (1) · Last reviewed commit: "test(it): send ReindexStopUnderLoadIT's ..." · Reviewed by Greptile