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

Ivan Andika updated RATIS-2712:
-------------------------------
    Description: 
See the issue in https://issues.apache.org/jira/browse/HDDS-16497 .

Since the StateMachine#applyTransactions and StateMachine#query are executed in 
another threads, ThreadLocal mechanisms (like in Hadoop RPC) will not work (or 
requires workaround). 

We can discuss whether we should support ThreadLocal propagation as a first 
class feature of Ratis. This can be similar to 
[https://github.com/alibaba/transmittable-thread-local]

 

  was:
See the issue in https://issues.apache.org/jira/browse/HDDS-16497 .

Since the StateMachine#applyTransactions and StateMachine#query are executed in 
another threads, ThreadLocal mechanisms (like in Hadoop RPC) will not work (or 
requires workaround). 

This task is to check whether we should support ThreadLocal propagation as a 
first class feature of Ratis. This can be similar to 
https://github.com/alibaba/transmittable-thread-local

 


> Support ThreadLocal propagation for Ratis
> -----------------------------------------
>
>                 Key: RATIS-2712
>                 URL: https://issues.apache.org/jira/browse/RATIS-2712
>             Project: Ratis
>          Issue Type: New Feature
>            Reporter: Ivan Andika
>            Assignee: Ivan Andika
>            Priority: Major
>
> See the issue in https://issues.apache.org/jira/browse/HDDS-16497 .
> Since the StateMachine#applyTransactions and StateMachine#query are executed 
> in another threads, ThreadLocal mechanisms (like in Hadoop RPC) will not work 
> (or requires workaround). 
> We can discuss whether we should support ThreadLocal propagation as a first 
> class feature of Ratis. This can be similar to 
> [https://github.com/alibaba/transmittable-thread-local]
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to