[
https://issues.apache.org/jira/browse/IGNITE-12338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kirill Tkalenko updated IGNITE-12338:
-------------------------------------
Description:
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}
was:
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}
> 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
>
>
> 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)