awelless commented on code in PR #10664:
URL: https://github.com/apache/nifi/pull/10664#discussion_r2630868546
##########
nifi-extension-bundles/nifi-aws-bundle/nifi-aws-kinesis/src/main/java/org/apache/nifi/processors/aws/kinesis/ConsumeKinesis.java:
##########
@@ -633,6 +628,16 @@ private void shutdownScheduler() {
@Override
public void onTrigger(final ProcessContext context, final ProcessSession
session) throws ProcessException {
+ if (!initialized.get()) {
Review Comment:
Short-circuiting by checking a bool variable, so we don't have to inspect
the content of the future after initialization completed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]