You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Ferenc Gerlits (Jira)" <ji...@apache.org> on 2021/12/07 10:59:00 UTC

[jira] [Created] (MINIFICPP-1697) Give a better error message on unsupported algorithms in HashContent

Ferenc Gerlits created MINIFICPP-1697:
-----------------------------------------

             Summary: 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


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.1#820001)