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

Mark Payne updated NIFI-15862:
------------------------------
    Status: Patch Available  (was: Open)

> Move Processors to Virtual Threads
> ----------------------------------
>
>                 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: 10m
>  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)

Reply via email to