[jira] [Created] (FLINK-8947) Timeout handler issue

2018-03-15 Thread dhiraj prajapati (JIRA)
dhiraj prajapati created FLINK-8947:
---

 Summary: Timeout handler issue
 Key: FLINK-8947
 URL: https://issues.apache.org/jira/browse/FLINK-8947
 Project: Flink
  Issue Type: Bug
  Components: CEP
Affects Versions: 1.4.2
Reporter: dhiraj prajapati


The issue is same as FLINK-5753

I am using Event time and have used watermark interval. Still, I have observed 
the timeout executes only after the next event

if: first event appears, second event not appear in the stream 
and *no new events appear in a stream*, timeout handler is not executed.

Expected result: timeout handler should be executed in case if there are no new 
events in a stream

 

My code snippet:

DataStream dataStream = env.socketTextStream("localhost", 1212);

dataStream.getExecutionConfig().setAutoWatermarkInterval(100L);

dataStream = dataStream.assignTimestampsAndWatermarks(new 
BoundedOutOfOrdernessTimestampExtractor(
 Time.seconds(0)) {

private static final long serialVersionUID = 4969170359023055566L;

@Override
 public long extractTimestamp(JSONObject event) {
 return System.currentTimeMillis();
 }
 });



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (FLINK-9054) IllegalStateException: Buffer pool is destroyed

2018-03-22 Thread dhiraj prajapati (JIRA)
dhiraj prajapati created FLINK-9054:
---

 Summary: IllegalStateException: Buffer pool is destroyed
 Key: FLINK-9054
 URL: https://issues.apache.org/jira/browse/FLINK-9054
 Project: Flink
  Issue Type: Bug
  Components: Cluster Management, Configuration, Core
Affects Versions: 1.4.2
Reporter: dhiraj prajapati
 Attachments: flink-conf.yaml

Hi,

I have a flink cluster running on 2 machines, say A and B.

Job manager is running on A. There are 2 TaksManagers, one on each node.

So effectively, A has a job manager and a task manager, while B has a task 
manager.

When I submit a job to the cluster, I see below exception and the job fails:

2018-03-22 17:16:52,205 WARN 
org.apache.flink.streaming.api.operators.AbstractStreamOperator - Error while 
emitting latency marker.
org.apache.flink.streaming.runtime.tasks.ExceptionInChainedOperatorException: 
Could not forward element to next operator
 at 
org.apache.flink.streaming.runtime.tasks.OperatorChain$ChainingOutput.emitLatencyMarker(OperatorChain.java:489)
 at 
org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.emitLatencyMarker(AbstractStreamOperator.java:824)
 at 
org.apache.flink.streaming.api.operators.StreamSource$LatencyMarksEmitter$1.onProcessingTime(StreamSource.java:150)
 at 
org.apache.flink.streaming.runtime.tasks.SystemProcessingTimeService$RepeatedTriggerTask.run(SystemProcessingTimeService.java:294)
 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: 
org.apache.flink.streaming.runtime.tasks.ExceptionInChainedOperatorException: 
Could not forward element to next operator
 at 
org.apache.flink.streaming.runtime.tasks.OperatorChain$ChainingOutput.emitLatencyMarker(OperatorChain.java:489)
 at 
org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.emitLatencyMarker(AbstractStreamOperator.java:824)
 at 
org.apache.flink.streaming.api.operators.AbstractStreamOperator.reportOrForwardLatencyMarker(AbstractStreamOperator.java:679)
 at 
org.apache.flink.streaming.api.operators.AbstractStreamOperator.processLatencyMarker(AbstractStreamOperator.java:662)
 at 
org.apache.flink.streaming.runtime.tasks.OperatorChain$ChainingOutput.emitLatencyMarker(OperatorChain.java:486)
 ... 10 more
Caused by: java.lang.RuntimeException: Buffer pool is destroyed.
 at 
org.apache.flink.streaming.runtime.io.RecordWriterOutput.emitLatencyMarker(RecordWriterOutput.java:141)
 at 
org.apache.flink.streaming.runtime.tasks.OperatorChain$BroadcastingOutputCollector.emitLatencyMarker(OperatorChain.java:604)
 at 
org.apache.flink.streaming.api.operators.AbstractStreamOperator$CountingOutput.emitLatencyMarker(AbstractStreamOperator.java:824)
 at 
org.apache.flink.streaming.api.operators.AbstractStreamOperator.reportOrForwardLatencyMarker(AbstractStreamOperator.java:679)
 at 
org.apache.flink.streaming.api.operators.AbstractStreamOperator.processLatencyMarker(AbstractStreamOperator.java:662)
 at 
org.apache.flink.streaming.runtime.tasks.OperatorChain$ChainingOutput.emitLatencyMarker(OperatorChain.java:486)
 ... 14 more
Caused by: java.lang.IllegalStateException: Buffer pool is destroyed.
 at 
org.apache.flink.runtime.io.network.buffer.LocalBufferPool.requestBuffer(LocalBufferPool.java:203)
 at 
org.apache.flink.runtime.io.network.buffer.LocalBufferPool.requestBufferBlocking(LocalBufferPool.java:191)
 at 
org.apache.flink.runtime.io.network.api.writer.RecordWriter.sendToTarget(RecordWriter.java:132)
 at 
org.apache.flink.runtime.io.network.api.writer.RecordWriter.randomEmit(RecordWriter.java:107)
 at 
org.apache.flink.streaming.runtime.io.StreamRecordWriter.randomEmit(StreamRecordWriter.java:102)
 at 
org.apache.flink.streaming.runtime.io.RecordWriterOutput.emitLatencyMarker(RecordWriterOutput.java:138)
 ... 19 more

 

The exception does not come when I run only one JobManager (only on machine B).

 

I am attaching flink-conf.yaml



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (FLINK-9120) Task Manager Fault Tolerance issue

2018-04-01 Thread dhiraj prajapati (JIRA)
dhiraj prajapati created FLINK-9120:
---

 Summary: Task Manager Fault Tolerance issue
 Key: FLINK-9120
 URL: https://issues.apache.org/jira/browse/FLINK-9120
 Project: Flink
  Issue Type: Bug
  Components: Cluster Management, Configuration, Core
Affects Versions: 1.4.2
Reporter: dhiraj prajapati


HI, 
I have set up a flink 1.4 cluster with 1 job manager and two task managers. 
The configs taskmanager.numberOfTaskSlots and parallelism.default were set 
to 2 on each node. I submitted a job to this cluster and it runs fine. To 
test fault tolerance, I killed one task manager. I was expecting the job to 
run fine because one of the 2 task managers was still up and running. 
However, the job failed. Am I missing something? 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)