Details
-
Bug
-
Status: Resolved
-
Trivial
-
Resolution: Fixed
-
1.23.2
Description
In PutDatabaseRecord processor, when you try to insert a CLOB and a SQLException gets catched
the original Exception message (the most valuable part) gets completely lost, because only its .getCause() is wrapped in a generic IOException that states "Unable to parse data as CLOB/String", making it extremely difficult to identify which is the real problem.
In my case, the problem was something like "ORA-25153: Tablespace temporanea vuota" but this valuable message wasn't logged at all.
I suggest to replace
} catch (SQLException e) { throw new IOException("Unable to parse data as CLOB/String " + value, e.getCause()); }
with
} catch (SQLException e) { throw new IOException("Unable to parse data as CLOB/String " + value, e); }
Thank you
Attachments
Issue Links
- duplicates
-
NIFI-13103 Enhance AutoCommit property to allow no value set in PutDatabaseRecord
-
- Resolved
-
- relates to
-
NIFI-6061 PutDatabaseRecord does not properly handle BLOB/CLOB fields
-
- Resolved
-