Skip to content

Commit 7b92bdb

Browse files
committed
add more debug
1 parent e205ad2 commit 7b92bdb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/src/main/java/org/elasticsearch/transport/RemoteClusterConnection.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,7 @@ private void connect(ActionListener<Void> connectListener, boolean forceRun) {
374374

375375
private void forkConnect(final Collection<ActionListener<Void>> toNotify) {
376376
ThreadPool threadPool = transportService.getThreadPool();
377+
assert threadPool.getThreadContext().isSystemContext() == false : "context is a system context";
377378
ExecutorService executor = threadPool.executor(ThreadPool.Names.MANAGEMENT);
378379
executor.submit(new AbstractRunnable() {
379380
@Override

0 commit comments

Comments
 (0)