Maksim Davydov created IGNITE-28375:
---------------------------------------
Summary: 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
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)