Skip to content

New EmptyServerLockCleanupIT - #6541

Open
ArbaazKhan1 wants to merge 1 commit into
apache:2.1from
ArbaazKhan1:accumulo-4882
Open

ArbaazKhan1 wants to merge 1 commit into
apache:2.1from
ArbaazKhan1:accumulo-4882

Conversation

@ArbaazKhan1

Copy link
Copy Markdown
Contributor

Closes issue #4882

Added EmptyServerLockCleanupIT to verify cleanup of stale, empty ZooKeeper server-registration nodes. The test creates empty scan-server and compactor registration nodes without lock children and confirms that the Manager and Compaction Coordinator remove them.

Existing scan-server and compaction ITs cover related server shutdown, metadata-reference, and compaction behavior, but they do not verify removal of stale empty ZooKeeper nodes.

}

@Test
public void testEmptyServerLockNodesAreCleanedUp() throws Exception {

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.

I think a better approach would be to start some compactors and scan servers, then shut them down, then wait until the paths are empty. This approach would probably be less brittle in the long run with changing zookeeper paths.

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.

2 participants