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

Ignite TC Bot commented on IGNITE-12338:
----------------------------------------

{panel:title=Branch: [pull/7025/head] Base: [master] : No blockers 
found!|borderStyle=dashed|borderColor=#ccc|titleBGColor=#D6F7C1}{panel}
[TeamCity *--> Run :: All* 
Results|https://ci.ignite.apache.org/viewLog.html?buildId=4736860&buildTypeId=IgniteTests24Java8_RunAll]

> Use ignite thread for notifier about long query
> -----------------------------------------------
>
>                 Key: IGNITE-12338
>                 URL: https://issues.apache.org/jira/browse/IGNITE-12338
>             Project: Ignite
>          Issue Type: Improvement
>            Reporter: Kirill Tkalenko
>            Assignee: Kirill Tkalenko
>            Priority: Major
>             Fix For: 2.8
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> If we are using simple Thread that name of it will be random and look as each 
> any thread.
>  We have to use IgniteThread for internal threads to platform.
> {code:java}
> checkWorker = new GridWorker(ctx.igniteInstanceName(), "long-qry", log) {
> @Override protected void body() throws InterruptedException, 
> IgniteInterruptedCheckedException {
> while (true)
> { checkLongRunning(); U.sleep(CHECK_PERIOD); }
> }
> };
> timeout = ctx.config().getLongQueryWarningTimeout();
> Thread thread = new Thread(checkWorker);
> thread.setDaemon(true);
> thread.start();
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to