[
https://issues.apache.org/jira/browse/IGNITE-28642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18079240#comment-18079240
]
Ignite TC Bot commented on IGNITE-28642:
----------------------------------------
{panel:title=Branch: [pull/13101/head] Base: [master] : No blockers
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
{panel:title=Branch: [pull/13101/head] Base: [master] : No new tests
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#F7D6C1}{panel}
[TeamCity *--> Run :: All*
Results|https://ci2.ignite.apache.org/viewLog.html?buildId=9054791&buildTypeId=IgniteTests24Java8_RunAll]
> Replace java.lang.Thread with org.apache.ignite.thread.IgniteThread instances
> -----------------------------------------------------------------------------
>
> Key: IGNITE-28642
> URL: https://issues.apache.org/jira/browse/IGNITE-28642
> Project: Ignite
> Issue Type: Task
> Reporter: Mikhail Petrov
> Assignee: Mikhail Petrov
> Priority: Major
> Labels: IEP-143, ise
> Fix For: 2.19
>
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
> IEP-143 Unified Operation Context Propagation implementation is highly
> susceptible to situations when closure/lambda is created in one thread but
> executed in another.
> In such cases, the Operation Context of the thread that created the closure
> may not be automatically restored for the duration of the closure execution
> in the executing thread.
> The developer can unintentionally create such code (e.g. custom worker).
> To mitigate the described problem it is proposed to more thoroughly control
> thread creation in the project: restrict usage of java.lang.Thread and
> replace it with org.apache.ignite.thread.IgniteThread.
> It will:
> 1. make project code more consistent
> 2. bind every thread to a specific Ignite instance
> 3. In the future, this will allow inlining code related to the operation
> context, for example:
> * Automatically capture the operation context when starting a thread
> * Assertions related to Operation Context propagation
--
This message was sent by Atlassian Jira
(v8.20.10#820010)