Repository navigation
[Server] Run every test on H2 or PostgreSQL 18 #2008
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
aacd60a
[Server] Add SupportedDatabase, the list of test databases
shba24 97795eb
[Server] Reject an unknown UC_TEST_DATABASE before tests run
shba24 c402e04
[Server] Check every test SessionFactory connects to the selected datβ¦
shba24 ba11274
[Server] Add TestDatabases, a fresh database per test
shba24 0d6e8e4
[Server] Run each BaseServerTest on its own test database
shba24 18ef72f
[Server] Give each test a PostgreSQL database copied from a template
shba24 e9e937f
[Server] Run every server test on the selected database
shba24 8521c85
[Build] Add testPostgres18 to run all tests on PostgreSQL 18
shba24 4b0082c
[Spark][Hadoop] Run connector tests on the selected test database
shba24 5e43f64
[Server] Close each test's configurator with its database; keep the fβ¦
shba24 15b6f14
[Build] Keep the test-database service files out of the client's testβ¦
shba24 ea7c275
[Server] Harden test-database cleanup and selection after review
shba24 7382a3e
[Server] Lock the table row before reading it in commits
shba24 1d15761
[Server] Test that an unknown UC_TEST_DATABASE stops the test run
shba24 562206f
[Server] Move the lock-order note out of a @param description
shba24 f607727
[Server] Make table deletion wait for an in-flight commit
shba24 0b5139f
[Build] Share the Testcontainers version across test dependencies
shba24 990949b
[Server] Remove the tests of the test-database harness
shba24 8a4615b
[Server] Drop the test-database checks and pin PostgreSQL by tag
shba24 1ba0533
[Server] Drop configurator fields that only fed getSessionFactory()
shba24 476ea5c
[Server] Make the drop-vs-commit test deterministic and remove duplicβ¦
shba24 8c0090d
[Server] Test the drop's table lock without threads; map JPA lock excβ¦
shba24 93357f7
[Server] Correct the lock-exception comment: only the lock query wraps
shba24 fcdc357
[Server] Map a deadlock on the table lock to the caller's error code
shba24 203c257
[Server] Read the locked table row with a locking read
shba24 0fe64e6
[Server] Return 503 for a drop that times out waiting for the table lock
shba24 8f58069
[Server] Test on MySQL that a commit that waited for the lock reads tβ¦
shba24 e06bfeb
[Server] Let each test database start empty without cleanup queries
shba24 adfdd60
[API] List 429 for a Delta table drop that times out waiting for the β¦
shba24 b2797dc
[API] Shorten the 429 description on Delta deleteTable
shba24 7089636
[Server] Fold the new lock tests into existing test classes
shba24 a0b5b7e
[Server] Drop the mock not-found lock test; check the name on the reaβ¦
shba24 85ade1d
[Server] Check the UC REST response for a drop blocked by the table lock
shba24 673b486
[Build] Use the server's PostgreSQL driver version in the test-databaβ¦
shba24 6532321
[API] Return 503 on the Delta API for a drop that times out on the taβ¦
shba24 ac4a580
[API] List the Delta 503 error after the 500 one in the spec
shba24 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[AI Assisted] Fix looks good. You mentioned the two-session MySQL test reproduced it (m0 before, m1 after) but isn't in the PR because the suite runs on H2 and PostgreSQL only.
MySQLDeltaCommitsCRUDTestalready starts a MySQL container via Testcontainers and runs in CI, so could the repro go in as a small MySQL-only class following that pattern? This regression is invisible on H2 and PostgreSQL, so without it a later refactor of this method can bring it back silently.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in 10cbce9 as
MySQLTableLockTest, followingMySQLDeltaCommitsCRUDTest. It first asserts the connection is at REPEATABLE READ, so it can't pass without testing anything. It fails with a plainrefresh(the commit sees the oldm0) and passes with the locking one. It's single-threaded with a fixed order, and passed 5 runs in a row.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update: in 48109fa this moved into the existing
MySQLDeltaCommitsCRUDTest, astestCommitThatWaitedForTheLockReadsTheOtherCommit, andMySQLTableLockTestis gone.