nifi/nifi-nar-bundles/nifi-kudu-bundle
Grant Henke 1898ad44be
NIFI-6895: Fix PutKudu processor concurrency issues
Calls to `trigger()` may be called concurrently from different threads,
however the PutKudu processor is storing the `kuduSession`
in a class level field. This can result in the logging issue reported in
NIFI-6895 and likely other unusual anomolies including performace
issues depending on the processor configuration.

Additionally the `operationType` was also stored in a class level field
and could be set concurrently resulting in the incorrect operation type
used.

This patch fixes the issue by moving both kuduSession and operationType
to be local. Additionaly some minor code cleanup was included.

An integration test, ITPutKudu, was added and used to manual verify the
logging issue existed and is fixed by this patch. I ran the test using
`mvn -Pintegration-tests verify -Dtest=ITPutKudu`

Signed-off-by: Pierre Villard <pierre.villard.fr@gmail.com>

This closes #3910.
2019-12-03 03:46:12 +01:00
..
nifi-kudu-controller-service NIFI-6733 updating to next release version for master branch 2019-11-04 13:31:39 -05:00
nifi-kudu-nar NIFI-6733 updating to next release version for master branch 2019-11-04 13:31:39 -05:00
nifi-kudu-processors NIFI-6895: Fix PutKudu processor concurrency issues 2019-12-03 03:46:12 +01:00
pom.xml NIFI-6733 updating to next release version for master branch 2019-11-04 13:31:39 -05:00