[
https://issues.apache.org/jira/browse/NIFI-13397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17854768#comment-17854768
]
Jim Steinebrey commented on NIFI-13397:
---------------------------------------
I looked at the existing code and
final Throwable toAnalyze = (e instanceof BatchUpdateException) ?
e.getCause() : e;
if (toAnalyze instanceof SQLTransientException) {
and I feel it would be safer to change the first line this way (and still
satisfy your use case)
final Throwable toAnalyze = (e instanceof BatchUpdateException || e
instanceof ProcessException) ? e.getCause() : e;
if (toAnalyze instanceof SQLTransientException) {
> PutDatabaseRecord check for cause of ProcessException being a
> SQLtransientException
> -----------------------------------------------------------------------------------
>
> Key: NIFI-13397
> URL: https://issues.apache.org/jira/browse/NIFI-13397
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Jim Steinebrey
> Assignee: Jim Steinebrey
> Priority: Major
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)