Skip to content

Commit 8b5ffa2

Browse files
authored
Merge pull request #1617 from marklogic/feature/cleanup
Small cleanup before 6.4.0 release
2 parents 7dc8104 + df70a1e commit 8b5ffa2

File tree

5 files changed

+6
-494
lines changed

5 files changed

+6
-494
lines changed

examples/src/main/java/com/marklogic/client/example/cookbook/datamovement/BulkLoadFromJdbcRaw.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022 MarkLogic Corporation
2+
* Copyright (c) 2023 MarkLogic Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

examples/src/main/java/com/marklogic/client/example/cookbook/datamovement/ExtractRowsViaTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022 MarkLogic Corporation
2+
* Copyright (c) 2023 MarkLogic Corporation
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.

marklogic-client-api-functionaltests/src/test/java/com/marklogic/client/fastfunctest/datamovement/QueryBatcherJobReportTest.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -683,16 +683,15 @@ public void run() {
683683
assertTrue((batchResults2.size()>initialUrisSize && batchResults2.size()<= 2436));
684684
}
685685
finally {
686-
// Delete all uris.
686+
// This shouldn't be necessary - i.e. tests should perform cleanup before they start, not after - but
687+
// leaving this in case one of the older functional tests runs after this that doesn't yet cleanup the
688+
// database before it runs.
687689
QueryBatcher deleteBatcher = dmManager.newQueryBatcher(urisList.iterator())
688690
.onUrisReady(new DeleteListener())
689691
.withThreadCount(10);
690692
dmManager.startJob(deleteBatcher);
691693
deleteBatcher.awaitCompletion();
692694
dmManager.stopJob(deleteBatcher);
693-
int docCnt = dbClient.newServerEval().xquery(qMaxBatches).eval().next().getNumber().intValue();
694-
System.out.println("All setMaxBatches docs should have been deleted. Count after DeleteListener job is " + docCnt);
695-
// assertTrue(docCnt == 0);
696695
}
697696
}
698697
}

0 commit comments

Comments
 (0)