Skip to content

Commit

Permalink
add assertion for debugging purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
ywelsch committed Jun 13, 2018
1 parent 1b7eeb4 commit e205ad2
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ void collectRemoteNodes(Iterator<DiscoveryNode> seedNodes,
// due to an already closed connection.
ThreadPool threadPool = transportService.getThreadPool();
ThreadContext threadContext = threadPool.getThreadContext();
assert threadContext.isSystemContext() == false : "context is a system context";
TransportService.ContextRestoreResponseHandler<ClusterStateResponse> responseHandler = new TransportService
.ContextRestoreResponseHandler<>(threadContext.newRestorableContext(false),
new SniffClusterStateResponseHandler(transportService, connection, listener, seedNodes,
Expand Down

0 comments on commit e205ad2

Please sign in to comment.