Github user jtstorck commented on a diff in the pull request:

    https://github.com/apache/nifi/pull/1719#discussion_r114352442
  
    --- Diff: 
nifi-nar-bundles/nifi-azure-bundle/nifi-azure-processors/src/main/java/org/apache/nifi/processors/azure/storage/FetchAzureBlobStorage.java
 ---
    @@ -103,10 +107,15 @@ public void onTrigger(ProcessContext context, 
ProcessSession session) throws Pro
                 session.transfer(flowFile, REL_SUCCESS);
                 final long transferMillis = 
TimeUnit.NANOSECONDS.toMillis(System.nanoTime() - startNanos);
                 session.getProvenanceReporter().fetch(flowFile, 
blob.getSnapshotQualifiedUri().toString(), transferMillis);
    -
    -        } catch (IllegalArgumentException | URISyntaxException | 
StorageException e1) {
    -            flowFile = session.penalize(flowFile);
    -            session.transfer(flowFile, REL_FAILURE);
    +        } catch (IllegalArgumentException | URISyntaxException | 
StorageException | ProcessException e) {
    +            if (e instanceof ProcessException && storedException.get() == 
null) {
    +                throw (ProcessException) e;
    +            } else {
    +                Exception failureException = 
Optional.ofNullable(storedException.get()).map(x -> x).orElse(e);
    --- End diff --
    
    Agreed, I will remove it.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to