Return-Path: X-Original-To: apmail-flink-dev-archive@www.apache.org Delivered-To: apmail-flink-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 74A6118715 for ; Thu, 18 Feb 2016 21:12:18 +0000 (UTC) Received: (qmail 72174 invoked by uid 500); 18 Feb 2016 21:12:18 -0000 Delivered-To: apmail-flink-dev-archive@flink.apache.org Received: (qmail 72081 invoked by uid 500); 18 Feb 2016 21:12:18 -0000 Mailing-List: contact dev-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list dev@flink.apache.org Received: (qmail 72055 invoked by uid 99); 18 Feb 2016 21:12:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Feb 2016 21:12:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 16C252C14F0 for ; Thu, 18 Feb 2016 21:12:18 +0000 (UTC) Date: Thu, 18 Feb 2016 21:12:18 +0000 (UTC) From: "Ufuk Celebi (JIRA)" To: dev@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (FLINK-3446) Back pressure tracker throws NPE for archived jobs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Ufuk Celebi created FLINK-3446: ---------------------------------- Summary: Back pressure tracker throws NPE for archived jobs Key: FLINK-3446 URL: https://issues.apache.org/jira/browse/FLINK-3446 Project: Flink Issue Type: Bug Components: Webfrontend Reporter: Ufuk Celebi Assignee: Ufuk Celebi After a job is archived the execution context of the {{ExecutionGraph}} is {{null}}. When triggering a new back pressure sample in parallel, this can result in a {{NullPointerException}} in the web frontend. This does not break anything, but pollutes the log. {code} 2016-02-18 20:17:49,071 ERROR org.apache.flink.runtime.webmonitor.BackPressureStatsTracker - Failed to gather stack trace sample. java.lang.RuntimeException: Discarded at org.apache.flink.runtime.webmonitor.StackTraceSampleCoordinator$PendingStackTraceSample.discard(StackTraceSampleCoordinator.java:394) at org.apache.flink.runtime.webmonitor.StackTraceSampleCoordinator$1.run(StackTraceSampleCoordinator.java:181) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505) Caused by: java.lang.RuntimeException: Time out ... 3 more 2016-02-18 20:17:50,088 WARN org.apache.flink.runtime.webmonitor.RuntimeMonitorHandler - Error while handling request java.lang.NullPointerException at scala.concurrent.impl.Promise$DefaultPromise.onComplete(Promise.scala:268) at org.apache.flink.runtime.webmonitor.BackPressureStatsTracker.triggerStackTraceSample(BackPressureStatsTracker.java:170) at org.apache.flink.runtime.webmonitor.handlers.JobVertexBackPressureHandler.handleRequest(JobVertexBackPressureHandler.java:98) at org.apache.flink.runtime.webmonitor.handlers.AbstractJobVertexRequestHandler.handleRequest(AbstractJobVertexRequestHandler.java:58) at org.apache.flink.runtime.webmonitor.handlers.AbstractExecutionGraphRequestHandler.handleRequest(AbstractExecutionGraphRequestHandler.java:61) at org.apache.flink.runtime.webmonitor.RuntimeMonitorHandler.respondAsLeader(RuntimeMonitorHandler.java:135) at org.apache.flink.runtime.webmonitor.RuntimeMonitorHandler.channelRead0(RuntimeMonitorHandler.java:112) at org.apache.flink.runtime.webmonitor.RuntimeMonitorHandler.channelRead0(RuntimeMonitorHandler.java:60) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324) at io.netty.handler.codec.http.router.Handler.routed(Handler.java:62) at io.netty.handler.codec.http.router.DualAbstractHandler.channelRead0(DualAbstractHandler.java:57) at io.netty.handler.codec.http.router.DualAbstractHandler.channelRead0(DualAbstractHandler.java:20) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324) at org.apache.flink.runtime.webmonitor.HttpRequestHandler.channelRead0(HttpRequestHandler.java:104) at org.apache.flink.runtime.webmonitor.HttpRequestHandler.channelRead0(HttpRequestHandler.java:65) at io.netty.channel.SimpleChannelInboundHandler.channelRead(SimpleChannelInboundHandler.java:105) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324) at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:242) at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:147) at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:339) at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:324) at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:847) at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131) at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:111) at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) at java.lang.Thread.run(Thread.java:745) {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)