NIFI-6016 PutCassandraRecord batch size

Adds resetting the batch size to fix broken batch processing

Removes empty line

Signed-off-by: Matthew Burgess <mattyb149@apache.org>

This closes #3337
This commit is contained in:
dnsbtchr 2019-02-26 11:47:17 +01:00 committed by Matthew Burgess
parent c93ee5ad59
commit d36fa6a210
1 changed files with 1 additions and 0 deletions

View File

@ -167,6 +167,7 @@ public class PutCassandraRecord extends AbstractCassandraProcessor {
if (recordsAdded.incrementAndGet() == batchSize) {
connectionSession.execute(batchStatement);
batchStatement.clear();
recordsAdded.set(0);
}
}