flink-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrey (JIRA)" <j...@apache.org>
Subject [jira] [Created] (FLINK-6277) RuntimeException in logs during normal shutdown
Date Fri, 07 Apr 2017 08:26:41 GMT
Andrey created FLINK-6277:
-----------------------------

             Summary: RuntimeException in logs during normal shutdown
                 Key: FLINK-6277
                 URL: https://issues.apache.org/jira/browse/FLINK-6277
             Project: Flink
          Issue Type: Bug
          Components: Streaming
    Affects Versions: 1.2.0
            Reporter: Andrey


During job shutdown, I noticed Exception in logs:
{code}
2017-04-07 08:17:51,995 WARN  org.apache.flink.streaming.api.operators.AbstractStreamOperator
 - Error while emitting latency marker.
java.lang.RuntimeException
	at org.apache.flink.streaming.runtime.io.RecordWriterOutput.emitLatencyMarker(RecordWriterOutput.java:99)
	at org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.emitLatencyMarker(AbstractStreamOperator.java:791)
	at org.apache.flink.streaming.api.operators.StreamSource$LatencyMarksEmitter$1.onProcessingTime(StreamSource.java:142)
	at org.apache.flink.streaming.runtime.tasks.SystemProcessingTimeService$RepeatedTriggerTask.run(SystemProcessingTimeService.java:256)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
	at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.InterruptedException
	at java.lang.Object.wait(Native Method)
	at org.apache.flink.runtime.io.network.buffer.LocalBufferPool.requestBuffer(LocalBufferPool.java:168)
	at org.apache.flink.runtime.io.network.buffer.LocalBufferPool.requestBufferBlocking(LocalBufferPool.java:138)
	at org.apache.flink.runtime.io.network.api.writer.RecordWriter.sendToTarget(RecordWriter.java:131)
	at org.apache.flink.runtime.io.network.api.writer.RecordWriter.randomEmit(RecordWriter.java:106)
	at org.apache.flink.streaming.runtime.io.StreamRecordWriter.randomEmit(StreamRecordWriter.java:104)
	at org.apache.flink.streaming.runtime.io.RecordWriterOutput.emitLatencyMarker(RecordWriterOutput.java:96)
	... 10 more
{code}

It looks like RecordWriterOutput catches and re-throw all exceptions. Even InterruptedException.
According to "cancel" method LatencyMarksEmitter may interrupt future. 

Expected:
* cleanly shutdown LatencyMarksEmitter 
* correctly handle InterruptedException



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message