Skip to content

Clean up user/table creation/cleanup in AccumuloClusterHarness #1171

@hkeebler

Description

@hkeebler

#1164 - Update the harness to create "test unique" users.prefixed with something (currently the tables are prefixed with the method name) so that each test can perform proper cleanup when finished. The current deleteusers code in the harness look for users prefixed with the method name to delete but that is not how they are created so the deletion does not work.

@keith-turner commented that the class name as a prefix is confusing because with inheritance and multiple classes its hard to know if you got it right. Maybe just use a constant like

public static final String HARNESS_USER_PREFIX="a1b1ae6bfef2ca11d92b86ab60930b3c56971f6e"

Then all code can just use that constant. I picked the latest commit hash on the master branch for the value. The constant could also be a classname, it does not really matter what it is as long its somewhat unique.

When this is completed all ITs implementing this class that use getUser(int) can remove all explicit user delete code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions