Skip to content

Refactors MultipleStoresIT#4975

Merged
kevinrr888 merged 3 commits into
apache:mainfrom
kevinrr888:4.0-feature-4903
Oct 24, 2024
Merged

Refactors MultipleStoresIT#4975
kevinrr888 merged 3 commits into
apache:mainfrom
kevinrr888:4.0-feature-4903

Conversation

@kevinrr888
Copy link
Copy Markdown
Member

Refactors MultipleStoresIT to function more similarly to how other fate tests are run (the two store types are tested in their own separate concrete classes). Created MultipleStoresTestRunner which is very similar to FateTestRunner. MultipleStoresIT is now an abstract class implemented by two new classes MetaMultipleStoresIT and UserMultipleStoresIT.

closes #4903

Refactors MultipleStoresIT to function more similarly to how other fate
tests are run (the two store types are tested in their own separate
concrete classes). Created MultipleStoresTestRunner which is very
similar to FateTestRunner. MultipleStoresIT is now an abstract class
implemented by two new classes MetaMultipleStoresIT and
UserMultipleStoresIT.

closes apache#4903
@kevinrr888 kevinrr888 added this to the 4.0.0 milestone Oct 11, 2024
@kevinrr888 kevinrr888 self-assigned this Oct 11, 2024
import org.apache.accumulo.core.fate.zookeeper.ZooUtil;
import org.apache.zookeeper.KeeperException;

public interface MultipleStoresTestRunner {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could we remove this interface and move the methods it declares into MultipleStoresIT as abstract methods? No need to do that, just want to make sure I understand the structure of these changes. Wondering if this interface has any other purposes.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yeah, not used anywhere else. Moved into MultipleStoresIT


@BeforeAll
public static void setup() throws Exception {
SharedMiniClusterBase.startMiniCluster();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why does mini cluster need to be started?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It does not thanks for catching that. Meta and User shared the same setup before so splitting them up I must have carried this over unnecessarily. Removed it in eb74934

- Moves the methods from MultipleStoresTestRunner into MultipleStoresIT
  and removes MultipleStoresTestRunner
- Removes unneccessary start of mini cluster in MetaMultipleStoresIT
@kevinrr888
Copy link
Copy Markdown
Member Author

@keith-turner Let me know if eb74934 looks good. I'll merge this in then

@kevinrr888 kevinrr888 merged commit f404f68 into apache:main Oct 24, 2024
@kevinrr888 kevinrr888 deleted the 4.0-feature-4903 branch October 24, 2024 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor MultipleStoresIT

2 participants