[jira] [Updated] (NIFI-9824) Address WARN log message in ProcessorAuditor on action RunOnce

2022-04-04 Thread Joe Witt (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-9824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Witt updated NIFI-9824:
---
Fix Version/s: 1.16.1

> Address WARN log message in ProcessorAuditor on action RunOnce
> --
>
> Key: NIFI-9824
> URL: https://issues.apache.org/jira/browse/NIFI-9824
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Paul Grey
>Assignee: Paul Grey
>Priority: Minor
> Fix For: 1.17.0, 1.16.1
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Noticed a WARN log message while reviewing NiFi logs. Tracked issue down to 
> `if` block in `updateProcessorAdvice()`.
> {code:java}
> // state is now stopped... consider the previous state
> if (ScheduledState.RUNNING.equals(scheduledState)) {
> processorAction.setOperation(Operation.Stop);
> } else if (ScheduledState.DISABLED.equals(scheduledState)) {
> processorAction.setOperation(Operation.Enable);
> }
> {code}
> An additional `else if` is needed to handle the "Run Once" case, where 
> `scheduledState` is "Stopped". Otherwise, the 
> `processorAction.setOperation()` is never called, which results in an NPE in 
> `NifiAuditor.saveActions()`.
> {code:java}
> WARN org.apache.nifi.audit.ProcessorAuditor Unable to record actions: Cannot 
> invoke "org.apache.nifi.action.Operation.name()" because the return value of 
> "org.apache.nifi.action.Action.getOperation()" is null
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Updated] (NIFI-9824) Address WARN log message in ProcessorAuditor on action RunOnce

2022-03-30 Thread David Handermann (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-9824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Handermann updated NIFI-9824:
---
Fix Version/s: 1.17.0
   Resolution: Fixed
   Status: Resolved  (was: Patch Available)

> Address WARN log message in ProcessorAuditor on action RunOnce
> --
>
> Key: NIFI-9824
> URL: https://issues.apache.org/jira/browse/NIFI-9824
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Paul Grey
>Assignee: Paul Grey
>Priority: Minor
> Fix For: 1.17.0
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Noticed a WARN log message while reviewing NiFi logs. Tracked issue down to 
> `if` block in `updateProcessorAdvice()`.
> {code:java}
> // state is now stopped... consider the previous state
> if (ScheduledState.RUNNING.equals(scheduledState)) {
> processorAction.setOperation(Operation.Stop);
> } else if (ScheduledState.DISABLED.equals(scheduledState)) {
> processorAction.setOperation(Operation.Enable);
> }
> {code}
> An additional `else if` is needed to handle the "Run Once" case, where 
> `scheduledState` is "Stopped". Otherwise, the 
> `processorAction.setOperation()` is never called, which results in an NPE in 
> `NifiAuditor.saveActions()`.
> {code:java}
> WARN org.apache.nifi.audit.ProcessorAuditor Unable to record actions: Cannot 
> invoke "org.apache.nifi.action.Operation.name()" because the return value of 
> "org.apache.nifi.action.Action.getOperation()" is null
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Updated] (NIFI-9824) Address WARN log message in ProcessorAuditor on action RunOnce

2022-03-23 Thread Paul Grey (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-9824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Grey updated NIFI-9824:

Status: Patch Available  (was: In Progress)

https://github.com/apache/nifi/pull/5890

> Address WARN log message in ProcessorAuditor on action RunOnce
> --
>
> Key: NIFI-9824
> URL: https://issues.apache.org/jira/browse/NIFI-9824
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Paul Grey
>Assignee: Paul Grey
>Priority: Minor
>
> Noticed a WARN log message while reviewing NiFi logs. Tracked issue down to 
> `if` block in `updateProcessorAdvice()`.
> {code:java}
> // state is now stopped... consider the previous state
> if (ScheduledState.RUNNING.equals(scheduledState)) {
> processorAction.setOperation(Operation.Stop);
> } else if (ScheduledState.DISABLED.equals(scheduledState)) {
> processorAction.setOperation(Operation.Enable);
> }
> {code}
> An additional `else if` is needed to handle the "Run Once" case, where 
> `scheduledState` is "Stopped". Otherwise, the 
> `processorAction.setOperation()` is never called, which results in an NPE in 
> `NifiAuditor.saveActions()`.
> {code:java}
> WARN org.apache.nifi.audit.ProcessorAuditor Unable to record actions: Cannot 
> invoke "org.apache.nifi.action.Operation.name()" because the return value of 
> "org.apache.nifi.action.Action.getOperation()" is null
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)


[jira] [Updated] (NIFI-9824) Address WARN log message in ProcessorAuditor on action RunOnce

2022-03-23 Thread Paul Grey (Jira)


 [ 
https://issues.apache.org/jira/browse/NIFI-9824?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul Grey updated NIFI-9824:

Summary: Address WARN log message in ProcessorAuditor on action RunOnce  
(was: Address WARN log message in ProcessorAuditor on RunOnce)

> Address WARN log message in ProcessorAuditor on action RunOnce
> --
>
> Key: NIFI-9824
> URL: https://issues.apache.org/jira/browse/NIFI-9824
> Project: Apache NiFi
>  Issue Type: Bug
>Reporter: Paul Grey
>Assignee: Paul Grey
>Priority: Minor
>
> Noticed a WARN log message while reviewing NiFi logs. Tracked issue down to 
> `if` block in `updateProcessorAdvice()`.
> {code:java}
> // state is now stopped... consider the previous state
> if (ScheduledState.RUNNING.equals(scheduledState)) {
> processorAction.setOperation(Operation.Stop);
> } else if (ScheduledState.DISABLED.equals(scheduledState)) {
> processorAction.setOperation(Operation.Enable);
> }
> {code}
> An additional `else if` is needed to handle the "Run Once" case, where 
> `scheduledState` is "Stopped". Otherwise, the 
> `processorAction.setOperation()` is never called, which results in an NPE in 
> `NifiAuditor.saveActions()`.
> {code:java}
> WARN org.apache.nifi.audit.ProcessorAuditor Unable to record actions: Cannot 
> invoke "org.apache.nifi.action.Operation.name()" because the return value of 
> "org.apache.nifi.action.Action.getOperation()" is null
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)