From issues-return-193555-archive-asf-public=cust-asf.ponee.io@flink.apache.org Wed Oct 10 13:46:07 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 51521180672 for ; Wed, 10 Oct 2018 13:46:06 +0200 (CEST) Received: (qmail 51824 invoked by uid 500); 10 Oct 2018 11:46:05 -0000 Mailing-List: contact issues-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 issues@flink.apache.org Received: (qmail 51815 invoked by uid 99); 10 Oct 2018 11:46:05 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2018 11:46:05 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 0D946180711 for ; Wed, 10 Oct 2018 11:46:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -108.188 X-Spam-Level: X-Spam-Status: No, score=-108.188 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, URI_HEX=1.313, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 2soUl-8jiLAW for ; Wed, 10 Oct 2018 11:46:03 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 9D2B95F39B for ; Wed, 10 Oct 2018 11:46:02 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 8EB52E2636 for ; Wed, 10 Oct 2018 11:46:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 757F424D2D for ; Wed, 10 Oct 2018 11:46:00 +0000 (UTC) Date: Wed, 10 Oct 2018 11:46:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-10309) Cancel flink job occurs java.net.ConnectException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FLINK-10309?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D166= 44869#comment-16644869 ]=20 ASF GitHub Bot commented on FLINK-10309: ---------------------------------------- GJL commented on a change in pull request #6785: [FLINK-10309][rest] Before= shutting down cluster, wait for asynchronous operations URL: https://github.com/apache/flink/pull/6785#discussion_r224041393 =20 =20 ########## File path: flink-runtime/src/test/java/org/apache/flink/runtime/rest/handl= er/InFlightRequestTrackerTest.java ########## @@ -59,4 +59,10 @@ public void testAwaitAsyncIsIdempotent() { =09=09assertTrue(inFlightRequestTracker.awaitAsync().isDone()); =09=09assertTrue(inFlightRequestTracker.awaitAsync().isDone()); =09} + +=09@Test +=09public void testShouldTolerateRegisterAfterAwaitAsync() { +=09=09assertTrue(inFlightRequestTracker.awaitAsync().isDone()); +=09=09inFlightRequestTracker.registerRequest(); =20 Review comment: will add ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. =20 For queries about this service, please contact Infrastructure at: users@infra.apache.org > Cancel flink job occurs java.net.ConnectException > ------------------------------------------------- > > Key: FLINK-10309 > URL: https://issues.apache.org/jira/browse/FLINK-10309 > Project: Flink > Issue Type: Bug > Components: Distributed Coordination, REST > Affects Versions: 1.5.3, 1.6.0, 1.7.0 > Reporter: vinoyang > Assignee: Gary Yao > Priority: Critical > Labels: pull-request-available > Fix For: 1.7.0, 1.6.2, 1.5.5 > > > The problem occurs when using the Yarn per-job detached mode. Trying to c= ancel with savepoint fails with the following exception before being able t= o retrieve the savepoint path: > exception stack trace :=C2=A0 > {code:java} > org.apache.flink.util.FlinkException: Could not cancel job xxxx. > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.client.cli.CliFrontend.la= mbda$cancel$4(CliFrontend.java:585) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.client.cli.CliFrontend.ru= nClusterAction(CliFrontend.java:960) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.client.cli.CliFrontend.ca= ncel(CliFrontend.java:577) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.client.cli.CliFrontend.pa= rseParameters(CliFrontend.java:1034) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.lang.Thread.run(Thread.java:748) > Caused by: java.util.concurrent.ExecutionException: org.apache.flink.runt= ime.concurrent.FutureUtils$RetryException: Could not complete the operation= . Number of retries has been exhausted. > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.util.concurrent.CompletableFuture.rep= ortGet(CompletableFuture.java:357) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.util.concurrent.CompletableFuture.get= (CompletableFuture.java:1895) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.client.program.rest.RestC= lusterClient.cancelWithSavepoint(RestClusterClient.java:398) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.client.cli.CliFrontend.la= mbda$cancel$4(CliFrontend.java:583) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 ... 6 more > Caused by: org.apache.flink.runtime.concurrent.FutureUtils$RetryException= : Could not complete the operation. Number of retries has been exhausted. > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.runtime.concurrent.Future= Utils.lambda$retryOperationWithDelay$5(FutureUtils.java:213) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.util.concurrent.CompletableFuture.uni= WhenComplete(CompletableFuture.java:760) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.util.concurrent.CompletableFuture$Uni= WhenComplete.tryFire(CompletableFuture.java:736) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.util.concurrent.CompletableFuture.pos= tComplete(CompletableFuture.java:474) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.util.concurrent.CompletableFuture.com= pleteExceptionally(CompletableFuture.java:1977) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.runtime.rest.RestClient.l= ambda$submitRequest$1(RestClient.java:274) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.shaded.netty4.io.netty.ut= il.concurrent.DefaultPromise.notifyListener0(DefaultPromise.java:680) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.shaded.netty4.io.netty.ut= il.concurrent.DefaultPromise.notifyListeners0(DefaultPromise.java:603) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.shaded.netty4.io.netty.ut= il.concurrent.DefaultPromise.notifyListeners(DefaultPromise.java:563) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.shaded.netty4.io.netty.ut= il.concurrent.DefaultPromise.tryFailure(DefaultPromise.java:424) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.shaded.netty4.io.netty.ch= annel.nio.AbstractNioChannel$AbstractNioUnsafe.fulfillConnectPromise(Abstra= ctNioChannel.java:268) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.shaded.netty4.io.netty.ch= annel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioCha= nnel.java:284) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.shaded.netty4.io.netty.ch= annel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:528) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.shaded.netty4.io.netty.ch= annel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.shaded.netty4.io.netty.ch= annel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.shaded.netty4.io.netty.ch= annel.nio.NioEventLoop.run(NioEventLoop.java:354) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.shaded.netty4.io.netty.ut= il.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.jav= a:111) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.shaded.netty4.io.netty.ut= il.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThre= adFactory.java:137) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 ... 1 more > Caused by: java.util.concurrent.CompletionException: java.net.ConnectExce= ption: Connect refuse: xxx/xxx.xxx.xxx.xxx:xxx > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.util.concurrent.CompletableFuture.enc= odeThrowable(CompletableFuture.java:292) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.util.concurrent.CompletableFuture.com= pleteThrowable(CompletableFuture.java:308) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.util.concurrent.CompletableFuture.uni= Compose(CompletableFuture.java:943) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at java.util.concurrent.CompletableFuture$Uni= Compose.tryFire(CompletableFuture.java:926) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 ... 16 more > Caused by: java.net.ConnectException: Connect refuse: xxx/xxx.xxx.xxx.xxx= :xxx > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at sun.nio.ch.SocketChannelImpl.checkConnect(= Native Method) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at sun.nio.ch.SocketChannelImpl.finishConnect= (SocketChannelImpl.java:717) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.shaded.netty4.io.netty.ch= annel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:224= ) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.flink.shaded.netty4.io.netty.ch= annel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioCha= nnel.java:281) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 ... 7 more > {code} > some=C2=A0discussion in mailing list=C2=A0:=C2=A0 > http://apache-flink-mailing-list-archive.1008284.n3.nabble.com/Cancel-fli= nk-job-occur-exception-td24056.html -- This message was sent by Atlassian JIRA (v7.6.3#76005)