Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IGNITE-16277 Query failed with assertion #548

Merged
merged 1 commit into from Jan 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -29,9 +29,6 @@
* TODO Documentation https://issues.apache.org/jira/browse/IGNITE-15859
*/
public class QueryTaskExecutorImpl implements QueryTaskExecutor, Thread.UncaughtExceptionHandler {
/** Default Ignite thread keep alive time. */
public static final long DFLT_THREAD_KEEP_ALIVE_TIME = 60_000L;

private static final IgniteLogger LOG = IgniteLogger.forClass(QueryTaskExecutorImpl.class);

private final String nodeName;
Expand All @@ -54,8 +51,8 @@ public void start() {
4,
NamedThreadFactory.threadPrefix(nodeName, "calciteQry"),
null,
true,
DFLT_THREAD_KEEP_ALIVE_TIME
false,
0
);
}

Expand Down
Expand Up @@ -18,6 +18,7 @@
package org.apache.ignite.internal.sql.engine.exec.rel;

import static org.apache.ignite.internal.util.CollectionUtils.nullOrEmpty;
import static org.apache.ignite.lang.IgniteStringFormatter.format;

import java.util.Collection;
import java.util.Comparator;
Expand Down Expand Up @@ -193,7 +194,9 @@ protected void checkState() throws Exception {
if (thread == null) {
thread = Thread.currentThread();
} else {
assert thread == Thread.currentThread();
assert thread == Thread.currentThread() : format("expThread={}, actThread={}, "
+ "qryId={}, fragmentId={}", thread.getName(), Thread.currentThread().getName(),
context().queryId(), context().fragmentId());
}
}

Expand Down