You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Martin Zink (Jira)" <ji...@apache.org> on 2022/12/13 15:13:00 UTC
[jira] [Assigned] (MINIFICPP-1697) Give a better error message on unsupported algorithms in HashContent
[ https://issues.apache.org/jira/browse/MINIFICPP-1697?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Zink reassigned MINIFICPP-1697:
--------------------------------------
Assignee: Martin Zink
> Give a better error message on unsupported algorithms in HashContent
> --------------------------------------------------------------------
>
> Key: MINIFICPP-1697
> URL: https://issues.apache.org/jira/browse/MINIFICPP-1697
> Project: Apache NiFi MiNiFi C++
> Issue Type: Improvement
> Reporter: Ferenc Gerlits
> Assignee: Martin Zink
> Priority: Minor
> Labels: MiNiFi-CPP-Hygiene
>
> If you specify an unsupported hash algorithm in the {{Hash Algorithm}} property of the {{HashContent}} processor, it will fail with an error like this in {{onTrigger}}:
> {noformat}
> [2021-12-07 10:48:56.508] [org::apache::nifi::minifi::core::Processor] [warning] Caught "map::at" (St12out_of_range) during Processor::onTrigger of processor: 345ddcb9-a73b-4d4e-8c3d-66ed162d60fc (HashContent)
> [2021-12-07 10:48:56.508] [org::apache::nifi::minifi::core::ProcessSession] [info] Penalizing c1565920-5742-11ec-bc73-5c879c2c3c60 for 30000ms at HashContent
> [2021-12-07 10:48:56.508] [org::apache::nifi::minifi::core::ProcessSession] [warning] ProcessSession rollback for HashContent executed
> {noformat}
> It would be better to check the value in {{onSchedule}}, and if it is not supported, then log a better error message like "algorithm X is not supported; supported algorithms are: ..." and throw an exception, ie. fail to schedule the processor.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)