[
https://issues.apache.org/jira/browse/IGNITE-12338?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16963037#comment-16963037
]
Vladislav Pyatkov commented on IGNITE-12338:
--------------------------------------------
[[email protected]] Looks good to me.
> 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)