Skip to content

Commit 71144a1

Browse files
committed
Update GetCQLPerformance.java
1 parent 2c2fa8b commit 71144a1

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

nifi/cql-processor/nifi-cql-processors/src/test/java/org/george0st/processors/cql/GetCQLPerformance.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,28 @@ public void testRead100K() throws Exception {
9292
}
9393
}
9494

95+
@Test
96+
public void testRead150K() throws Exception {
97+
MockFlowFile result;
98+
99+
// Prepare data for performance test
100+
PutCQLPerformance putCQL = new PutCQLPerformance();
101+
putCQL.init();
102+
putCQL.csvRandomWrite150K();
103+
104+
// sleep before read (2 seconds)
105+
Thread.sleep(2000);
106+
107+
// Read data
108+
for (TestSetupRead setup : setups) {
109+
setup.columnNames="colbigint, colint";
110+
111+
result = runTest(setup);
112+
113+
// check amount of read items
114+
assertNotNull(result, String.format("Issue with processing in '%s'", setup.name));
115+
assertEquals(150_000, Long.parseLong(result.getAttribute(CQLAttributes.READ_COUNT)));
116+
}
117+
}
118+
95119
}

0 commit comments

Comments
 (0)