[ 
https://issues.apache.org/jira/browse/IGNITE-3303?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15676280#comment-15676280
 ] 

Anton Vinogradov edited comment on IGNITE-3303 at 11/18/16 9:28 AM:
--------------------------------------------------------------------

Saikat, 

1) Seems your fix not works. 

I set brakepoint at before last test and I see a lot of theads at 
{{IgniteSource.run}} 
{noformat}
"Source: Custom Source -> Sink: Unnamed (1/1)@6026" daemon prio=5 tid=0x7e 
nid=NA runnable
  java.lang.Thread.State: RUNNABLE
          at 
org.apache.ignite.source.flink.IgniteSource.run(IgniteSource.java:153)
          at 
org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:78)
          at 
org.apache.flink.streaming.runtime.tasks.SourceStreamTask.run(SourceStreamTask.java:56)
          at 
org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:224)
          at org.apache.flink.runtime.taskmanager.Task.run(Task.java:559)
          at java.lang.Thread.run(Thread.java:745)
{noformat}

In other works in first test we have 1 {{IgniteSource}}, in second we have 2 
and so on. This seems to be not what we expected.

As I told before {{IgniteSource.cancel()}} will not stop {{IgniteSource}} in 
case it runned from test. It should be runned from 
{{StreamExecutionEnvironment}} somehow. 

Please fix this and make sure that tests work properly.
Btw, we can discuss this by skype before fixing.


was (Author: avinogradov):
Saikat, 

1) Seems you fix not works. 

I set brakepoint at before last test and I see a lot of theads at 
{{IgniteSource.run}} 
{noformat}
"Source: Custom Source -> Sink: Unnamed (1/1)@6026" daemon prio=5 tid=0x7e 
nid=NA runnable
  java.lang.Thread.State: RUNNABLE
          at 
org.apache.ignite.source.flink.IgniteSource.run(IgniteSource.java:153)
          at 
org.apache.flink.streaming.api.operators.StreamSource.run(StreamSource.java:78)
          at 
org.apache.flink.streaming.runtime.tasks.SourceStreamTask.run(SourceStreamTask.java:56)
          at 
org.apache.flink.streaming.runtime.tasks.StreamTask.invoke(StreamTask.java:224)
          at org.apache.flink.runtime.taskmanager.Task.run(Task.java:559)
          at java.lang.Thread.run(Thread.java:745)
{noformat}

In other works in first test we have 1 {{IgniteSource}}, in second we have 2 
and so on. This seems to be not what we expected.

As I told before {{IgniteSource.cancel()}} will not stop {{IgniteSource}} in 
case it runned from test. It should be runned from 
{{StreamExecutionEnvironment}} somehow. 

Please fix this and make sure that tests work properly.
Btw, we can discuss this by skype before fixing.

> Apache Flink Integration - Flink source to run a continuous query against one 
> or multiple caches
> ------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-3303
>                 URL: https://issues.apache.org/jira/browse/IGNITE-3303
>             Project: Ignite
>          Issue Type: New Feature
>          Components: streaming
>            Reporter: Saikat Maitra
>            Assignee: Saikat Maitra
>         Attachments: Screen Shot 2016-10-07 at 12.44.47 AM.png, 
> testFlinkIgniteSourceWithLargeBatch.log, win7.PNG
>
>
> Apache Flink integration 
> +++ *Ignite as a bidirectional Connector* +++
> As a Flink source => run a continuous query against one or multiple
> caches [4].
> Related discussion : 
> http://apache-ignite-developers.2346864.n4.nabble.com/Apache-Flink-lt-gt-Apache-Ignite-integration-td8163.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to