mirror of https://github.com/apache/nifi.git
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:
parent
c93ee5ad59
commit
d36fa6a210
|
@ -167,6 +167,7 @@ public class PutCassandraRecord extends AbstractCassandraProcessor {
|
|||
if (recordsAdded.incrementAndGet() == batchSize) {
|
||||
connectionSession.execute(batchStatement);
|
||||
batchStatement.clear();
|
||||
recordsAdded.set(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue