Repository navigation
[Server] Bound waitForClockToPass in BaseModelCRUDTest to 5 seconds - #2419
Merged
Merged
Conversation
- Fail after 5s instead of spinning forever if the wall clock steps backwards. - Split out of unitycatalog#2330 at review. Co-authored-by: Isaac <[email protected]> Signed-off-by: Yi Li <[email protected]>
1 of 4 tasks
yili-db
added a commit
that referenced
this pull request
Dec 2, 2026
## 🥞 Stacked PR Use this [link](https://github.com/unitycatalog/unitycatalog/pull/2330/files) to review incremental changes. - [stack/test_timeouts](#2330) [[Files changed](https://github.com/unitycatalog/unitycatalog/pull/2330/files)] --------- - `EventLoopStallTest.stopWaitsForBlockedRequestAndExecutorRemainsActive` failed in CI because the first request took more than 5s to reach its handler - Wait up to 30s for things that should happen: a request reaching its handler, a response, an executor task, the overlapping stream - Keep the timings that are assertions: the 3s window in which `stop()` must still be waiting, and the 300ms client timeout that must fire - Size the timeouts to those waits, on the test servers only (production defaults are unchanged) - Each held request raises its own request timeout (`ServiceRequestContext.setRequestTimeout`) above Armeria's 10s default, which would otherwise fail it with a 500 - The clients' response timeout matches it - The shutdown test sets `server.shutdown-timeout` to 30s, as `UnityCatalogServerShutdownTest` does, instead of relying on the 5s default Moved out of #2167 at review, to keep that PR to its test-isolation fixes. The `waitForClockToPass` deadline moved on to #2419. Signed-off-by: Yi Li <[email protected]> **PR Checklist** - [x] A description of the changes is added to the description of this PR. - [ ] If there is a related issue, make sure it is linked to this PR. - [ ] If you've fixed a bug or added code that should be tested, add tests! - [ ] If you've added or modified a feature, documentation in `docs` is updated **Description of changes** <!-- Please state what you've changed and how it might affect the users. --> This pull request and its description were written by Isaac. --------- Signed-off-by: Yi Li <[email protected]> Co-authored-by: Isaac <[email protected]>
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.
🥞 Stacked PR
Use this link to review incremental changes.
BaseModelCRUDTest.waitForClockToPassspins untilSystem.currentTimeMillis()passes a timestamp. If the wall clock steps backwards (for example an NTP correction), it spins until the CI job times out, with no hint of why.System.nanoTime(), which does not step.EventLoopStallTestroom on slow machines #2330 at review, to keep that PR toEventLoopStallTest.Tested with
SdkModelCRUDTestandCliModelCRUDTest.Signed-off-by: Yi Li [email protected]
PR Checklist
docsis updatedDescription of changes
This pull request and its description were written by Isaac.