Skip to content

Instantly share code, notes, and snippets.

@rmichela
Last active June 19, 2018 17:36
Show Gist options
  • Save rmichela/1b8ac226c9c3336862ccc373831d8632 to your computer and use it in GitHub Desktop.
Save rmichela/1b8ac226c9c3336862ccc373831d8632 to your computer and use it in GitHub Desktop.
Http 2 error generator
package errorcodeservice;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.eclipse.jetty.http2.server.HTTP2CServerConnectionFactory;
import org.eclipse.jetty.server.HttpConfiguration;
import org.eclipse.jetty.server.HttpConnectionFactory;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.ServerConnector;
import org.eclipse.jetty.server.handler.AbstractHandler;
import org.eclipse.jetty.util.thread.QueuedThreadPool;
/**
* Inspired by https://github.com/eclipse/jetty.project/blob/jetty-9.4.5.v20170502/jetty-http2/http2-server/src/test/java/org/eclipse/jetty/http2/server/HTTP2CServer.java
*/
public class ErrorCodeService extends Server
{
/**
* Usage java -jar xxx.jar port errorCode
*
* port - the tcp port to listen to
* errorCode - the http response code to respond with
*/
public static void main(String... args ) throws Exception
{
int port = Integer.parseInt(args[0]);
int errorCode = Integer.parseInt(args[1]);
ErrorCodeService server = new ErrorCodeService(port, errorCode);
server.start();
}
private int errorCode;
public ErrorCodeService(int port, int errorCode)
{
HttpConfiguration config = new HttpConfiguration();
// HTTP + HTTP/2 connector
HttpConnectionFactory http1 = new HttpConnectionFactory(config);
HTTP2CServerConnectionFactory http2c = new HTTP2CServerConnectionFactory(config);
ServerConnector connector = new ServerConnector(this,http1,http2c);
connector.setPort(port);
addConnector(connector);
((QueuedThreadPool)getThreadPool()).setName("server");
setHandler(new SimpleHandler());
this.errorCode = errorCode;
}
private class SimpleHandler extends AbstractHandler
{
@Override
public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
{
System.out.println("Reporting HTTP " + errorCode);
baseRequest.setHandled(true);
response.setContentType("text/plain");
response.setStatus(errorCode);
response.setContentLength(0);
}
}
}
./linkerd-1.4.3-exec output/config.client.yaml [10:26:04]
-XX:+AggressiveOpts -XX:+AlwaysPreTouch -XX:+CMSClassUnloadingEnabled -XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSParallelRemarkEnabled -XX:+CMSScavengeBeforeRemark -XX:InitialHeapSize=33554432 -XX:MaxHeapSize=1073741824 -XX:MaxNewSize=357916672 -XX:MaxTenuringThreshold=6 -XX:OldPLABSize=16 -XX:+PrintCommandLineFlags -XX:+ScavengeBeforeFullGC -XX:-TieredCompilation -XX:+UseCMSInitiatingOccupancyOnly -XX:+UseCompressedClassPointers -XX:+UseCompressedOops -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+UseStringDeduplication
Jun 19, 2018 10:26:34 AM com.twitter.finagle.http.HttpMuxer$ $anonfun$new$1
INFO: HttpMuxer[/admin/metrics.json] = com.twitter.finagle.stats.MetricsExporter(<function1>)
Jun 19, 2018 10:26:34 AM com.twitter.finagle.http.HttpMuxer$ $anonfun$new$1
INFO: HttpMuxer[/admin/per_host_metrics.json] = com.twitter.finagle.stats.HostMetricsExporter(<function1>)
I 0619 10:26:34.966 PDT THREAD1: linkerd 1.4.3 (rev=bbdb358eaeede9fb3f43360f5aab84d7c87e663a) built at 20180613-102238
I 0619 10:26:35.391 PDT THREAD1: Finagle version 18.4.0 (rev=82da7ddebf5de885f2adaf556d91ef39c2ffe937) built at 20180410-150636
I 0619 10:26:36.649 PDT THREAD1: Tracer: com.twitter.finagle.zipkin.thrift.ScribeZipkinTracer
I 0619 10:26:36.888 PDT THREAD1: serving http admin on /0.0.0.0:15373
I 0619 10:26:36.905 PDT THREAD1: serving outgoing_http2 on /0.0.0.0:7011
I 0619 10:26:36.935 PDT THREAD1: initialized
W 0619 10:26:43.205 PDT THREAD23 TraceId:a04d6a2b305a199e: Exception propagated to the default monitor (upstream address: /127.0.0.1:52618, downstream address: /127.0.0.1:9999, label: #/io.l5d.fs/time).
java.lang.IllegalArgumentException: requirement failed
at scala.Predef$.require(Predef.scala:264)
at com.twitter.finagle.buoyant.h2.Status.<init>(Status.scala:8)
at com.twitter.finagle.buoyant.h2.Status$.$anonfun$fromCode$1(Status.scala:97)
at scala.collection.MapLike.getOrElse(MapLike.scala:128)
at scala.collection.MapLike.getOrElse$(MapLike.scala:126)
at scala.collection.AbstractMap.getOrElse(Map.scala:59)
at com.twitter.finagle.buoyant.h2.Status$.fromCode(Status.scala:97)
at com.twitter.finagle.buoyant.h2.Response$Impl.status(Message.scala:150)
at com.twitter.finagle.buoyant.h2.service.H2Classifiers$Responses$Failure$.unapply(H2Classifiers.scala:46)
at com.twitter.finagle.buoyant.h2.service.H2Classifiers$NonRetryableServerFailures$$anonfun$6.applyOrElse(H2Classifiers.scala:132)
at com.twitter.finagle.buoyant.h2.service.H2Classifiers$NonRetryableServerFailures$$anonfun$6.applyOrElse(H2Classifiers.scala:131)
at scala.PartialFunction$Lifted.apply(PartialFunction.scala:224)
at scala.PartialFunction$Lifted.apply(PartialFunction.scala:220)
at com.twitter.finagle.buoyant.h2.H2FailureAccrualFactory$FailureAccrualService.classifyResponse(H2FailureAccrualFactory.scala:207)
at com.twitter.finagle.buoyant.h2.H2FailureAccrualFactory$FailureAccrualService.$anonfun$apply$3(H2FailureAccrualFactory.scala:196)
at com.twitter.util.Promise$Transformer.liftedTree1$1(Promise.scala:223)
at com.twitter.util.Promise$Transformer.k(Promise.scala:223)
at com.twitter.util.Promise$Transformer.apply(Promise.scala:234)
at com.twitter.util.Promise$Transformer.apply(Promise.scala:215)
at com.twitter.util.Promise$WaitQueue.com$twitter$util$Promise$WaitQueue$$run(Promise.scala:90)
at com.twitter.util.Promise$WaitQueue$$anon$5.run(Promise.scala:85)
at com.twitter.concurrent.LocalScheduler$Activation.run(Scheduler.scala:198)
at com.twitter.concurrent.LocalScheduler$Activation.submit(Scheduler.scala:157)
at com.twitter.concurrent.LocalScheduler.submit(Scheduler.scala:274)
at com.twitter.concurrent.Scheduler$.submit(Scheduler.scala:109)
at com.twitter.util.Promise$WaitQueue.runInScheduler(Promise.scala:85)
at com.twitter.util.Promise$WaitQueue.runInScheduler$(Promise.scala:84)
at com.twitter.util.Promise$Transformer.runInScheduler(Promise.scala:215)
at com.twitter.util.Promise.updateIfEmpty(Promise.scala:739)
at com.twitter.util.Promise.update(Promise.scala:711)
at com.twitter.util.Promise.setValue(Promise.scala:687)
at com.twitter.concurrent.AsyncQueue.offer(AsyncQueue.scala:122)
at com.twitter.finagle.netty4.transport.ChannelTransport$$anon$2.channelRead(ChannelTransport.scala:188)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.handler.codec.http2.H2FrameCodec$ConnectionHandler$FrameListener.onHeadersRead(H2FrameCodec.scala:287)
at io.netty.handler.codec.http2.H2FrameCodec$ConnectionHandler$FrameListener.onHeadersRead(H2FrameCodec.scala:277)
at io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.onHeadersRead(DefaultHttp2ConnectionDecoder.java:321)
at io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.onHeadersRead(DefaultHttp2ConnectionDecoder.java:269)
at io.netty.handler.codec.http2.Http2InboundFrameLogger$1.onHeadersRead(Http2InboundFrameLogger.java:56)
at io.netty.handler.codec.http2.DefaultHttp2FrameReader$2.processFragment(DefaultHttp2FrameReader.java:483)
at io.netty.handler.codec.http2.DefaultHttp2FrameReader.readHeadersFrame(DefaultHttp2FrameReader.java:491)
at io.netty.handler.codec.http2.DefaultHttp2FrameReader.processPayloadState(DefaultHttp2FrameReader.java:254)
at io.netty.handler.codec.http2.DefaultHttp2FrameReader.readFrame(DefaultHttp2FrameReader.java:160)
at io.netty.handler.codec.http2.Http2InboundFrameLogger.readFrame(Http2InboundFrameLogger.java:41)
at io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder.decodeFrame(DefaultHttp2ConnectionDecoder.java:118)
at io.netty.handler.codec.http2.Http2ConnectionHandler$FrameDecoder.decode(Http2ConnectionHandler.java:383)
at io.netty.handler.codec.http2.Http2ConnectionHandler.decode(Http2ConnectionHandler.java:443)
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
at com.twitter.finagle.netty4.channel.ChannelRequestStatsHandler.channelRead(ChannelRequestStatsHandler.scala:48)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
at com.twitter.finagle.netty4.channel.ChannelStatsHandler.channelRead(ChannelStatsHandler.scala:117)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1359)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:935)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at com.twitter.finagle.util.BlockingTimeTrackingThreadFactory$$anon$1.run(BlockingTimeTrackingThreadFactory.scala:23)
at java.lang.Thread.run(Thread.java:748)
I 0619 10:26:43.209 PDT THREAD23: [S L:/127.0.0.1:7011 R:/127.0.0.1:52618 S:3] unexpected error; resetting remote: INTERNAL_ERROR
java.lang.IllegalArgumentException: requirement failed
at scala.Predef$.require(Predef.scala:264)
at com.twitter.finagle.buoyant.h2.Status.<init>(Status.scala:8)
at com.twitter.finagle.buoyant.h2.Status$.$anonfun$fromCode$1(Status.scala:97)
at scala.collection.MapLike.getOrElse(MapLike.scala:128)
at scala.collection.MapLike.getOrElse$(MapLike.scala:126)
at scala.collection.AbstractMap.getOrElse(Map.scala:59)
at com.twitter.finagle.buoyant.h2.Status$.fromCode(Status.scala:97)
at com.twitter.finagle.buoyant.h2.Response$Impl.status(Message.scala:150)
at com.twitter.finagle.buoyant.h2.service.H2Classifiers$Responses$Failure$.unapply(H2Classifiers.scala:46)
at com.twitter.finagle.buoyant.h2.service.H2Classifiers$NonRetryableServerFailures$$anonfun$6.applyOrElse(H2Classifiers.scala:132)
at com.twitter.finagle.buoyant.h2.service.H2Classifiers$NonRetryableServerFailures$$anonfun$6.applyOrElse(H2Classifiers.scala:131)
at scala.PartialFunction$Lifted.apply(PartialFunction.scala:224)
at scala.PartialFunction$Lifted.apply(PartialFunction.scala:220)
at com.twitter.finagle.buoyant.h2.H2FailureAccrualFactory$FailureAccrualService.classifyResponse(H2FailureAccrualFactory.scala:207)
at com.twitter.finagle.buoyant.h2.H2FailureAccrualFactory$FailureAccrualService.$anonfun$apply$3(H2FailureAccrualFactory.scala:196)
at com.twitter.util.Promise$Transformer.liftedTree1$1(Promise.scala:223)
at com.twitter.util.Promise$Transformer.k(Promise.scala:223)
at com.twitter.util.Promise$Transformer.apply(Promise.scala:234)
at com.twitter.util.Promise$Transformer.apply(Promise.scala:215)
at com.twitter.util.Promise$WaitQueue.com$twitter$util$Promise$WaitQueue$$run(Promise.scala:90)
at com.twitter.util.Promise$WaitQueue$$anon$5.run(Promise.scala:85)
at com.twitter.concurrent.LocalScheduler$Activation.run(Scheduler.scala:198)
at com.twitter.concurrent.LocalScheduler$Activation.submit(Scheduler.scala:157)
at com.twitter.concurrent.LocalScheduler.submit(Scheduler.scala:274)
at com.twitter.concurrent.Scheduler$.submit(Scheduler.scala:109)
at com.twitter.util.Promise$WaitQueue.runInScheduler(Promise.scala:85)
at com.twitter.util.Promise$WaitQueue.runInScheduler$(Promise.scala:84)
at com.twitter.util.Promise$Transformer.runInScheduler(Promise.scala:215)
at com.twitter.util.Promise.updateIfEmpty(Promise.scala:739)
at com.twitter.util.Promise.update(Promise.scala:711)
at com.twitter.util.Promise.setValue(Promise.scala:687)
at com.twitter.concurrent.AsyncQueue.offer(AsyncQueue.scala:122)
at com.twitter.finagle.netty4.transport.ChannelTransport$$anon$2.channelRead(ChannelTransport.scala:188)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.handler.codec.http2.H2FrameCodec$ConnectionHandler$FrameListener.onHeadersRead(H2FrameCodec.scala:287)
at io.netty.handler.codec.http2.H2FrameCodec$ConnectionHandler$FrameListener.onHeadersRead(H2FrameCodec.scala:277)
at io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.onHeadersRead(DefaultHttp2ConnectionDecoder.java:321)
at io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.onHeadersRead(DefaultHttp2ConnectionDecoder.java:269)
at io.netty.handler.codec.http2.Http2InboundFrameLogger$1.onHeadersRead(Http2InboundFrameLogger.java:56)
at io.netty.handler.codec.http2.DefaultHttp2FrameReader$2.processFragment(DefaultHttp2FrameReader.java:483)
at io.netty.handler.codec.http2.DefaultHttp2FrameReader.readHeadersFrame(DefaultHttp2FrameReader.java:491)
at io.netty.handler.codec.http2.DefaultHttp2FrameReader.processPayloadState(DefaultHttp2FrameReader.java:254)
at io.netty.handler.codec.http2.DefaultHttp2FrameReader.readFrame(DefaultHttp2FrameReader.java:160)
at io.netty.handler.codec.http2.Http2InboundFrameLogger.readFrame(Http2InboundFrameLogger.java:41)
at io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder.decodeFrame(DefaultHttp2ConnectionDecoder.java:118)
at io.netty.handler.codec.http2.Http2ConnectionHandler$FrameDecoder.decode(Http2ConnectionHandler.java:383)
at io.netty.handler.codec.http2.Http2ConnectionHandler.decode(Http2ConnectionHandler.java:443)
at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
at com.twitter.finagle.netty4.channel.ChannelRequestStatsHandler.channelRead(ChannelRequestStatsHandler.scala:48)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
at com.twitter.finagle.netty4.channel.ChannelStatsHandler.channelRead(ChannelStatsHandler.scala:117)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1359)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:935)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:134)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:645)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:580)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:497)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:459)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at com.twitter.finagle.util.BlockingTimeTrackingThreadFactory$$anon$1.run(BlockingTimeTrackingThreadFactory.scala:23)
at java.lang.Thread.run(Thread.java:748)
E 0619 10:26:43.577 PDT THREAD19: [S L:/127.0.0.1:7011 R:/127.0.0.1:52618] dispatcher failed
com.twitter.finagle.ChannelClosedException: ChannelException at remote address: /127.0.0.1:52618. Remote Info: Not Available
at com.twitter.finagle.netty4.transport.ChannelTransport$$anon$2.channelInactive(ChannelTransport.scala:196)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224)
at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:75)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224)
at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:75)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224)
at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:75)
at com.twitter.finagle.netty4.channel.ChannelRequestStatsHandler.channelInactive(ChannelRequestStatsHandler.scala:41)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224)
at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:75)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224)
at io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:377)
at io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:342)
at io.netty.handler.codec.http2.Http2ConnectionHandler.channelInactive(Http2ConnectionHandler.java:420)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224)
at io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:75)
at com.twitter.finagle.netty4.channel.ChannelStatsHandler.channelInactive(ChannelStatsHandler.scala:148)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:224)
at io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1354)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:245)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:231)
at io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:917)
at io.netty.channel.AbstractChannel$AbstractUnsafe$8.run(AbstractChannel.java:822)
at io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:403)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:463)
at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:858)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at com.twitter.finagle.util.BlockingTimeTrackingThreadFactory$$anon$1.run(BlockingTimeTrackingThreadFactory.scala:23)
at java.lang.Thread.run(Thread.java:748)
^CI 0619 10:26:48.152 PDT THREAD24: Received SIGINT. Shutting down ...
I 0619 10:26:48.182 PDT THREAD24: Reaping /svc/time.localhost.mesh.force.com:7011
^CI 0619 10:26:50.832 PDT THREAD33: Received SIGINT. Shutting down ...
^CI 0619 10:26:51.175 PDT THREAD34: Received SIGINT. Shutting down ...
^CI 0619 10:26:51.463 PDT THREAD35: Received SIGINT. Shutting down ...
Exception in thread "SIGINT handler" Exception in thread "SIGINT handler" Exception in thread "SIGINT handler" Exception in thread "SIGINT handler" com.twitter.app.CloseException: An error occurred on exit
Suppressed: com.twitter.util.TimeoutException: 2018-06-19 17:26:58 +0000
at com.twitter.util.Future.$anonfun$by$1(Future.scala:1676)
at com.twitter.util.Future$$anon$2.apply$mcV$sp(Future.scala:1697)
at com.twitter.util.Monitor.apply(Monitor.scala:46)
at com.twitter.util.Monitor.apply$(Monitor.scala:41)
at com.twitter.util.NullMonitor$.apply(Monitor.scala:229)
at com.twitter.util.Timer.$anonfun$schedule$2(Timer.scala:39)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
at com.twitter.util.Local$.let(Local.scala:72)
at com.twitter.util.Timer.$anonfun$schedule$1(Timer.scala:39)
at com.twitter.util.JavaTimer.$anonfun$scheduleOnce$1(Timer.scala:233)
at com.twitter.util.JavaTimer$$anon$2.run(Timer.scala:264)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
com.twitter.app.CloseException: An error occurred on exit
Suppressed: com.twitter.util.TimeoutException: 2018-06-19 17:26:58 +0000
at com.twitter.util.Future.$anonfun$by$1(Future.scala:1676)
at com.twitter.util.Future$$anon$2.apply$mcV$sp(Future.scala:1697)
at com.twitter.util.Monitor.apply(Monitor.scala:46)
at com.twitter.util.Monitor.apply$(Monitor.scala:41)
at com.twitter.util.NullMonitor$.apply(Monitor.scala:229)
at com.twitter.util.Timer.$anonfun$schedule$2(Timer.scala:39)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
at com.twitter.util.Local$.let(Local.scala:72)
at com.twitter.util.Timer.$anonfun$schedule$1(Timer.scala:39)
at com.twitter.util.JavaTimer.$anonfun$scheduleOnce$1(Timer.scala:233)
at com.twitter.util.JavaTimer$$anon$2.run(Timer.scala:264)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
com.twitter.app.CloseException: An error occurred on exit
Suppressed: com.twitter.util.TimeoutException: 2018-06-19 17:26:58 +0000
at com.twitter.util.Future.$anonfun$by$1(Future.scala:1676)
at com.twitter.util.Future$$anon$2.apply$mcV$sp(Future.scala:1697)
at com.twitter.util.Monitor.apply(Monitor.scala:46)
at com.twitter.util.Monitor.apply$(Monitor.scala:41)
at com.twitter.util.NullMonitor$.apply(Monitor.scala:229)
at com.twitter.util.Timer.$anonfun$schedule$2(Timer.scala:39)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
at com.twitter.util.Local$.let(Local.scala:72)
at com.twitter.util.Timer.$anonfun$schedule$1(Timer.scala:39)
at com.twitter.util.JavaTimer.$anonfun$scheduleOnce$1(Timer.scala:233)
at com.twitter.util.JavaTimer$$anon$2.run(Timer.scala:264)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
com.twitter.app.CloseException: An error occurred on exit
Suppressed: com.twitter.util.TimeoutException: 2018-06-19 17:26:58 +0000
at com.twitter.util.Future.$anonfun$by$1(Future.scala:1676)
at com.twitter.util.Future$$anon$2.apply$mcV$sp(Future.scala:1697)
at com.twitter.util.Monitor.apply(Monitor.scala:46)
at com.twitter.util.Monitor.apply$(Monitor.scala:41)
at com.twitter.util.NullMonitor$.apply(Monitor.scala:229)
at com.twitter.util.Timer.$anonfun$schedule$2(Timer.scala:39)
at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)
at com.twitter.util.Local$.let(Local.scala:72)
at com.twitter.util.Timer.$anonfun$schedule$1(Timer.scala:39)
at com.twitter.util.JavaTimer.$anonfun$scheduleOnce$1(Timer.scala:233)
at com.twitter.util.JavaTimer$$anon$2.run(Timer.scala:264)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
fish: './linkerd-1.4.3-exec output/con…' terminated by signal SIGKILL (Forced quit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment