Skip to content
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

Cleanup Glue databases left behind by tests #10901

Conversation

findepi
Copy link
Member

@findepi findepi commented Feb 2, 2022

No description provided.

@@ -207,6 +219,37 @@ protected HiveMetastore createMetastore(File tempDir)
.setHideDeltaLakeTables(true)).get());
}

@Test
public void cleanupOrphanedDatabases()
Copy link
Member

@hashhar hashhar Feb 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Runs in parallel. Any databases being listed in this test class can then become flaky.
Would be nice to fix those kind of tests (but I didn't spend time to find them).

Alternatively we make this just a method and call in @BeforeClass? (still flaky if other CI runs are running - but lesser chances)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is time threshold, so it doesn't matter whether this is @Test or @BeforeClass.

It still runs in parallel with other runs (test processes), that's why i tried to code this defensively.

Copy link
Member

@hashhar hashhar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reminder to not submit from fork to get tests to run.

@findepi
Copy link
Member Author

findepi commented Feb 2, 2022

Reminder to not submit from fork to get tests to run.

-> #10903

@findepi findepi closed this Feb 2, 2022
@findepi findepi deleted the findepi/cleanup-glue-databases-left-behind-by-tests-e49960 branch February 2, 2022 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants