Skip to content

NIFI-14212 fixed issue where an invalid processor could get in a perp…#11204

Closed
markobean wants to merge 1 commit intoapache:mainfrom
markobean:NIFI-14212
Closed

NIFI-14212 fixed issue where an invalid processor could get in a perp…#11204
markobean wants to merge 1 commit intoapache:mainfrom
markobean:NIFI-14212

Conversation

@markobean
Copy link
Copy Markdown
Contributor

…etual starting state disallowing changes

Summary

See Jira issue for details on the symptoms and procedure to replicate. In short, an INVALID processor can be stuck in an STARTING state making it impossible to configure or even stop. This PR resolves the issue. It ensures a Processor is not in an INVALID state prior to attempts to start.

There was a logging issue noted while investigating as well. The DEBUG log message indicated a time interval of 5 sec between successive attempts to start the Processor. The actual value is 500ms.

NIFI-14212

Tracking

Please complete the following tracking steps prior to pull request creation.

Issue Tracking

Pull Request Tracking

  • Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
  • Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000
  • Pull request contains commits signed with a registered key indicating Verified status

Pull Request Formatting

  • Pull Request based on current revision of the main branch
  • Pull Request refers to a feature branch with one commit containing changes

Verification

Please indicate the verification steps performed prior to pull request creation.

Build

  • Build completed using ./mvnw clean install -P contrib-check
    • JDK 21
    • JDK 25

Licensing

  • New dependencies are compatible with the Apache License 2.0 according to the License Policy
  • New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

  • Documentation formatting appears as expected in rendered files

@dan-s1
Copy link
Copy Markdown
Contributor

dan-s1 commented May 4, 2026

@markobean Please see the requirement above for submitting signed commits.

@markobean
Copy link
Copy Markdown
Contributor Author

@markobean Please see the requirement above for submitting signed commits.

Commit signed now.

@dan-s1
Copy link
Copy Markdown
Contributor

dan-s1 commented May 4, 2026

Hmm commit is still showing as Unverified.

@markap14
Copy link
Copy Markdown
Contributor

markap14 commented May 4, 2026

Hey @markobean I don't think this is the change we want to make. When you do a Bulk Start (e.g., at a Process Group level) it does intentionally start invalid processors. Without that, we had cases where you'd start a Process Group and think everything was running. But something was invalid so it didn't start. But then when you look a bit later, it's valid and just shows as STOPPED, leading users to think it just intermittently doesn't start components... and there are a lot of flows where processors are expected to become valid due to environment changes like a file becoming available.

The concern in the Jira indicates "Once in this state, the processor cannot be DISABLED or STOPPED." That, I do not believe, is accurate, at a framework level. This sounds like a UI bug to me, where the UI doesn't allow you to click Stop. But if you were to stop the whole Process Group, it does stop the processor appropriately. I think I'd push more for a fix to the UI so that it allows stopping an invalid component.

@pvillard31
Copy link
Copy Markdown
Contributor

Was the issue confirmed in a recent version of NiFi? I believe we can now properly stop such processors since NiFi 2.7.0 via NIFI-14999.

@markobean
Copy link
Copy Markdown
Contributor Author

markobean commented May 5, 2026

Was the issue confirmed in a recent version of NiFi? I believe we can now properly stop such processors since NiFi 2.7.0 via NIFI-14999.

I was sure the bad behavior still existed. However, I re-tested today and things seemed to be ok. Given the scenario in the original issue, I was able to stop the invalid UpdateAttribute processor successfully - both individually and as part of a whole process group stop. NiFi 2.9.0. Bad day yesterday?

I will close this PR.

@markobean
Copy link
Copy Markdown
Contributor Author

Cannot reproduce original issue. Closing.

@markobean markobean closed this May 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants