apache / apache/gravitino

[Improvement] Backend storage repeatedly restarts in a UT class.

Open
#6,505 0 comments 0 reactions 1 assignee Claimed by @yuqi1129 View on GitHub
improvement
Dominant language
Java
Stars
3.2k
Forks
935
Avg merge
1d 15h
Merged PRs (30d)
315

Description

### What would you like to be improved?

in the test class, each UT will restart H2, MySQL, and PostgreSQL, which is unnecessary but also causes tests to slow since they need to start and stop the container repeatedly.

https://github.com/apache/gravitino/blob/fb3d900ff0e70514f86dc8462ba07e5611bc4015/core/src/test/java/org/apache/gravitino/storage/TestEntityStorage.java#L116-L123

### How should we improve?

reuse the backend storage instance in the class

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.