Java PostCommits produce too many spanner databases
Each test in SpannerReadIT and SpannerWriteIT creates its own database, causing us to often go over quota.
Imported from Jira BEAM-13375. Original Jira may contain additional context. Reported by: ibzib.
This looks resolved on current master. #40259 (merged 2026-09-25) moved the database setup in both SpannerReadIT and SpannerWriteIT from per-test @Before/@After methods to @BeforeClass/@AfterClass. Each class now creates its GoogleSQL and PostgreSQL databases once and drops them after its last test:
SpannerReadIT:setUpTestEnvironmentandtearDown.SpannerWriteIT:setUpTestEnvironmentandtearDown. Its remaining per-test@Beforeonly deletes all rows from the two tables.
So the 16 tests in the two classes now share 4 databases per run, rather than each test creating its own. I checked this by reading the code at b791929763c; I didn't run the ITs, since they need a Spanner instance. If that matches your understanding, this issue can probably be closed.