Skip to content

Commit 1b4ba75

Browse files
committed
test: removed System.out calls
1 parent fe41e30 commit 1b4ba75

1 file changed

Lines changed: 16 additions & 16 deletions

File tree

engine/src/test/java/com/arcadedb/index/vector/VectorIndexProgressCallbackTest.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -80,26 +80,26 @@ CREATE INDEX IF NOT EXISTS ON VectorDoc (embedding) LSM_VECTOR
8080
100000, // batch size
8181
(doc, total) -> {
8282
documentsIndexed.set((int) total);
83-
if (total % 100 == 0) {
84-
System.out.println("Indexed " + total + " documents...");
85-
}
83+
// if (total % 100 == 0) {
84+
// System.out.println("Indexed " + total + " documents...");
85+
// }
8686
},
8787
(phase, processedNodes, totalNodes, insertsOrAccesses) -> {
8888
switch (phase) {
8989
case "validating":
9090
validationProgress.set(processedNodes);
91-
System.out.printf("Validating vectors: %d / %d%n", processedNodes, totalNodes);
91+
// System.out.printf("Validating vectors: %d / %d%n", processedNodes, totalNodes);
9292
break;
9393
case "building":
9494
buildingProgress.set(processedNodes);
9595
buildingCallbacks.incrementAndGet();
9696
final int insertsInProgress = (int) (insertsOrAccesses - processedNodes);
97-
System.out.printf("Building graph: %d / %d nodes (%d inserts in progress)%n",
98-
processedNodes, totalNodes, insertsInProgress);
97+
// System.out.printf("Building graph: %d / %d nodes (%d inserts in progress)%n",
98+
// processedNodes, totalNodes, insertsInProgress);
9999
break;
100100
case "persisting":
101101
persistingCalled.incrementAndGet();
102-
System.out.printf("Persisting graph: %d / %d nodes%n", processedNodes, totalNodes);
102+
// System.out.printf("Persisting graph: %d / %d nodes%n", processedNodes, totalNodes);
103103
break;
104104
}
105105
}
@@ -110,11 +110,11 @@ CREATE INDEX IF NOT EXISTS ON VectorDoc (embedding) LSM_VECTOR
110110
// Note: Validation and building callbacks may not be called if graph is already built
111111
// during the insert phase. That's ok - the important thing is that the index build succeeded.
112112
// In production, these callbacks will be triggered when explicitly rebuilding an existing index.
113-
System.out.println("\n=== Callback Summary ===");
114-
System.out.println("Validation reports: " + (validationProgress.get() > 0 ? "YES" : "NO"));
115-
System.out.println("Building callback count: " + buildingCallbacks.get());
116-
System.out.println("Final nodes built: " + buildingProgress.get());
117-
System.out.println("Persisting reports: " + (persistingCalled.get() > 0 ? "YES" : "NO"));
113+
// System.out.println("\n=== Callback Summary ===");
114+
// System.out.println("Validation reports: " + (validationProgress.get() > 0 ? "YES" : "NO"));
115+
// System.out.println("Building callback count: " + buildingCallbacks.get());
116+
// System.out.println("Final nodes built: " + buildingProgress.get());
117+
// System.out.println("Persisting reports: " + (persistingCalled.get() > 0 ? "YES" : "NO"));
118118
}
119119

120120
@Test
@@ -186,13 +186,13 @@ void graphRebuildWithCallback() {
186186
(phase, processedNodes, totalNodes, vecAccesses) -> {
187187
graphBuildCalls.incrementAndGet();
188188
phaseLog.append(String.format("[%s: %d/%d] ", phase, processedNodes, totalNodes));
189-
System.out.printf("Graph Build - Phase: %s, Progress: %d/%d, Vector accesses: %d%n",
190-
phase, processedNodes, totalNodes, vecAccesses);
189+
// System.out.printf("Graph Build - Phase: %s, Progress: %d/%d, Vector accesses: %d%n",
190+
// phase, processedNodes, totalNodes, vecAccesses);
191191
}
192192
);
193193

194-
System.out.println("\nGraph build phases observed: " + phaseLog);
195-
System.out.println("Total graph callback invocations: " + graphBuildCalls.get());
194+
// System.out.println("\nGraph build phases observed: " + phaseLog);
195+
// System.out.println("Total graph callback invocations: " + graphBuildCalls.get());
196196

197197
// We should have received some callbacks (validation, building, or persisting)
198198
// Note: callbacks may not be triggered if graph is already built, which is acceptable

0 commit comments

Comments
 (0)