You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Kirill Tkalenko (Jira)" <ji...@apache.org> on 2019/10/30 08:31:00 UTC

[jira] [Created] (IGNITE-12338) Use ignite thread for notifier about long query

Kirill Tkalenko created IGNITE-12338:
----------------------------------------

             Summary: 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
             Fix For: 2.8


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}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)