turcsanyip commented on code in PR #9505:
URL: https://github.com/apache/nifi/pull/9505#discussion_r1834630844
##########
nifi-extension-bundles/nifi-aws-bundle/nifi-aws-processors/src/main/java/org/apache/nifi/processors/aws/ml/textract/GetAwsTextractJobStatus.java:
##########
@@ -111,7 +112,7 @@ public void onTrigger(final ProcessContext context, final
ProcessSession session
} else {
throw new IllegalStateException("Unrecognized job status");
}
- } catch (final ThrottlingException e) {
+ } catch (final ThrottlingException |
ProvisionedThroughputExceededException e) {
getLogger().info("Request Rate Limit exceeded", e);
session.transfer(flowFile, REL_THROTTLED);
Review Comment:
Thanks for adding the additional exception @tpalfy! It makes sense.
I think `yield()` should also be called in this case in order to avoid
subsequent requests when the rate limit is already exceeded.
--
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]