You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "David Handermann (Jira)" <ji...@apache.org> on 2026/09/18 03:11:00 UTC
[jira] [Updated] (NIFI-15862) Add Virtual Thread Scheduling Strategy for Processors
[ https://issues.apache.org/jira/browse/NIFI-15862?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Handermann updated NIFI-15862:
------------------------------------
Summary: Add Virtual Thread Scheduling Strategy for Processors (was: Move Processors to Virtual Threads)
> Add Virtual Thread Scheduling Strategy for Processors
> -----------------------------------------------------
>
> Key: NIFI-15862
> URL: https://issues.apache.org/jira/browse/NIFI-15862
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Core Framework
> Reporter: Mark Payne
> Assignee: Mark Payne
> Priority: Major
> Time Spent: 7h 40m
> Remaining Estimate: 0h
>
> When we moved to Java 21 for NiFi 2.0 one of the exciting capabilities that we discussed was the ability to move to virtual threads for scheduling processors. This provides a handful of benefits:
> * The scheduling code becomes much simpler
> * It's a bit more efficient, with no need to constantly schedule tasks and then cancel futures in the case of a yield, etc.
> * We could use ThreadLocal whereas right now it does not work well
> * Use of Logging MDC could be improved
> * Thread dumps are much clearer because we pin a given 'task' to a single thread. So things like AbstractProcessor calling ProcessSession.commit can be tracked back to a specific thread and therefore a specific processor, etc.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)