[
https://issues.apache.org/jira/browse/IGNITE-28375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ilya Shishkov resolved IGNITE-28375.
------------------------------------
Fix Version/s: 2.19
Resolution: Fixed
[~mmdavydov], merged to master. Thanks for the patch!
> Fix flaky JniThreadDetachTest
> -----------------------------
>
> Key: IGNITE-28375
> URL: https://issues.apache.org/jira/browse/IGNITE-28375
> Project: Ignite
> Issue Type: Task
> Reporter: Maksim Davydov
> Assignee: Maksim Davydov
> Priority: Minor
> Fix For: 2.19
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> JniThreadDetachTest in the .NET module verifies that using Ignite APIs from
> CLR threads does not leak JVM threads, ensuring proper JNI thread
> attach/detach behavior.
> The test works by capturing a snapshot of JVM thread names before and after
> executing multi-threaded cache operations from CLR threads, and asserting
> that no additional threads remain after execution.
> Currently, the test is flaky due to the appearance of internal Ignite threads
> with the 'mgmt-' prefix in the thread snapshot obtained via
> _PlatformThreadNamesTask_. These threads belong to Ignite’s internal
> management/statistics thread pool and may be lazily initialized, meaning they
> can appear nondeterministically depending on timing and execution paths.
> As a result, these mgmt- threads are not related to JNI leaks and should be
> excluded from comparison to avoid false positives.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)