beam icon indicating copy to clipboard operation
beam copied to clipboard

Java PostCommits produce too many spanner databases

Open damccorm opened this issue 4 years ago • 1 comments

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.

damccorm avatar Jun 04 '22 22:06 damccorm

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:

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.

jonathansudhakar1 avatar Nov 15 '26 17:11 jonathansudhakar1