ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stanislav Lukyanov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IGNITE-10225) Striped pool starvation check reports false-positive warnings if a job starts right before the check
Date Mon, 12 Nov 2018 15:12:00 GMT

    [ https://issues.apache.org/jira/browse/IGNITE-10225?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16683917#comment-16683917
] 

Stanislav Lukyanov commented on IGNITE-10225:
---------------------------------------------

A very rough reproducer based on StripedExecutortest is attached.
To reproduce: run testFalsePositiveStarvation and check that both starvation checks while
a stripe is active print starvation warnings to the log.

> Striped pool starvation check reports false-positive warnings if a job starts right before
the check
> ----------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-10225
>                 URL: https://issues.apache.org/jira/browse/IGNITE-10225
>             Project: Ignite
>          Issue Type: Bug
>            Reporter: Stanislav Lukyanov
>            Priority: Major
>              Labels: newbie
>         Attachments: StripedExecutorTest.java
>
>
> StripedExecutor::checkStarvation checks if two conditions are met: a stripe is executing
a job and the stripe's job counter hasn't changed since the last check.
> These conditions will be met if no jobs have been executed for a long time and a job
(even a very short one) has just started.
> This check isn't supposed to be exact and allowed to produce false-positives. However,
the check is supposed to detect jobs running for more than starvation check interval (IGNITE_STARVATION_CHECK_INTERVAL),
but in this case it may detect even very short ones.
> To fix this we may require a stripe to have no progress in two consecutive checks - then
we will have much less chance for a false-positive, but still detect hanging or very long
jobs.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message