lamber-ken commented on issue #8254: [FLINK-12219][runtime] Yarn application 
can't stop when flink job failed in per-job yarn cluste mode
URL: https://github.com/apache/flink/pull/8254#issuecomment-486510735
 
 
   hi @tillrohrmann, a minimal reproducible flink program can simulate this bug 
quickly.
   
   ### ENV
   - flink-1.6.3 or up version 
   - run job on yarn cluster in detached mode.
   - restart strategy
   ```
   restart-strategy: fixed-delay
   restart-strategy.fixed-delay.attempts: 20
   restart-strategy.fixed-delay.delay: 2 s
   ```
   
   ### Flink Job
   ```
   public static void main(String[] args) throws Exception {
   
       StreamExecutionEnvironment env = 
StreamExecutionEnvironment.getExecutionEnvironment();
   
       DataStream<String> text = env.addSource(new SourceFunction<String>() {
           @Override
           public void run(SourceContext<String> ctx) throws Exception {
               while (true) {
                   ctx.collect("aaaa");
                   Thread.sleep(100);
               }
           }
   
           @Override
           public void cancel() {
   
           }
       });
   
       text.addSink(new SinkFunction<String>() {
           @Override
           public void invoke(String value, Context context) throws Exception {
               System.out.println(1 / 0);
           }
       });
   
       env.execute();
   
   }
   ```
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to