Skip to content

Small cleanup before 6.4.0 release #1617

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

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 MarkLogic Corporation
* Copyright (c) 2023 MarkLogic Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 MarkLogic Corporation
* Copyright (c) 2023 MarkLogic Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -683,16 +683,15 @@ public void run() {
assertTrue((batchResults2.size()>initialUrisSize && batchResults2.size()<= 2436));
}
finally {
// Delete all uris.
// This shouldn't be necessary - i.e. tests should perform cleanup before they start, not after - but
// leaving this in case one of the older functional tests runs after this that doesn't yet cleanup the
// database before it runs.
QueryBatcher deleteBatcher = dmManager.newQueryBatcher(urisList.iterator())
.onUrisReady(new DeleteListener())
.withThreadCount(10);
dmManager.startJob(deleteBatcher);
deleteBatcher.awaitCompletion();
dmManager.stopJob(deleteBatcher);
int docCnt = dbClient.newServerEval().xquery(qMaxBatches).eval().next().getNumber().intValue();
System.out.println("All setMaxBatches docs should have been deleted. Count after DeleteListener job is " + docCnt);
// assertTrue(docCnt == 0);
}
}
}
Loading