Cleanup Glue databases left eventually behind by other test runs#12102
Conversation
There was a problem hiding this comment.
| private static final String TEST_DATABASE_NAME_PREFIX = "test_delta_glue"; | |
| private static final String TEST_DATABASE_NAME_PREFIX = "test_"; |
cc @alexjo2144
|
Does this relate to @alexjo2144 's #11903 ? |
|
If this approach is more general we can close mine |
dee3eff to
38f578b
Compare
There was a problem hiding this comment.
By using this prefix will have the outcome that this test will delete glue databases belonging to other connectors as well (e.g. : iceberg).
To avoid doing the same logic for Iceberg too, can we place this logic on a shared location? Naive idea - a new module under testing.
There was a problem hiding this comment.
this is fine, let's just not introduce a new module for this
There was a problem hiding this comment.
Can we put this in a separate test Class? It could be nice to run this class as a suite without needing to go through and clean all orphan databases
There was a problem hiding this comment.
@alexjo2144 please tell me if this is what you wanted
1044d95 to
6e9fd8a
Compare
515d4e0 to
270e9f2
Compare
|
Putting it in a different class does mean you need to add it to: |
Co-authored-by: Marius Grama <findinpath@gmail.com>
270e9f2 to
d21bb5a
Compare
|
Test PR: #12154 |
|
Looks like the new test passed |
|
CI failed: #12147 |
Co-authored-by: Marius Grama findinpath@gmail.com
Description
Related issues, pull requests, and links
Documentation
( ) No documentation is needed.
( ) Sufficient documentation is included in this PR.
( ) Documentation PR is available with #prnumber.
( ) Documentation issue #issuenumber is filed, and can be handled later.
Release notes
( ) No release notes entries required.
( ) Release notes entries required with the following suggested text: