From issues-return-425420-archive-asf-public=cust-asf.ponee.io@flink.apache.org Mon Nov 30 13:06:58 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mxout1-he-de.apache.org (mxout1-he-de.apache.org [95.216.194.37]) by mx-eu-01.ponee.io (Postfix) with ESMTPS id A06FC180637 for ; Mon, 30 Nov 2020 14:06:58 +0100 (CET) Received: from mail.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by mxout1-he-de.apache.org (ASF Mail Server at mxout1-he-de.apache.org) with SMTP id C8DC06629D for ; Mon, 30 Nov 2020 13:06:01 +0000 (UTC) Received: (qmail 53267 invoked by uid 500); 30 Nov 2020 13:06:01 -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 53223 invoked by uid 99); 30 Nov 2020 13:06:00 -0000 Received: from ec2-52-204-25-47.compute-1.amazonaws.com (HELO mailrelay1-ec2-va.apache.org) (52.204.25.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Nov 2020 13:06:00 +0000 Received: from jira2-he-de.apache.org (jira2-he-de.apache.org [168.119.33.54]) by mailrelay1-ec2-va.apache.org (ASF Mail Server at mailrelay1-ec2-va.apache.org) with ESMTPS id CBC543E9D8 for ; Mon, 30 Nov 2020 13:06:00 +0000 (UTC) Received: from jira2-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira2-he-de.apache.org (ASF Mail Server at jira2-he-de.apache.org) with ESMTP id 1D863C803D2 for ; Mon, 30 Nov 2020 13:06:00 +0000 (UTC) Date: Mon, 30 Nov 2020 13:06:00 +0000 (UTC) From: "Till Rohrmann (Jira)" To: issues@flink.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-20195) Jobs endpoint returns duplicated jobs 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-20195?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D172= 40755#comment-17240755 ]=20 Till Rohrmann commented on FLINK-20195: --------------------------------------- I think the part where the {{Dispatcher}} asks the {{DispatcherJobs}} for t= heir state and then the {{ArchivedExecutionGraphStore}} happens in the same= method call. Hence, there should not be anything else which is executed in= between. > Jobs endpoint returns duplicated jobs > ------------------------------------- > > Key: FLINK-20195 > URL: https://issues.apache.org/jira/browse/FLINK-20195 > Project: Flink > Issue Type: Bug > Components: Runtime / Coordination, Runtime / REST > Affects Versions: 1.11.2 > Reporter: Ingo B=C3=BCrk > Priority: Minor > Fix For: 1.12.0 > > > The GET /jobs endpoint can, for a split second, return a duplicated job a= fter it has been cancelled. This occurred in Ververica Platform after cance= ling a job (using PATCH /jobs/\{jobId}) and calling GET /jobs. > I've reproduced this and queried the endpoint in a relatively tight loop = (~ every 0.5s) to log the responses of GET /jobs and got this: > =C2=A0 > =C2=A0 > {code:java} > =E2=80=A6 > {"jobs":[{"id":"e110531c08dd4e3dbbfcf7afc1629c3d","status":"RUNNING"},{"i= d":"53fd11db25394308862c997dce9ef990","status":"CANCELLING"}]} > {"jobs":[{"id":"e110531c08dd4e3dbbfcf7afc1629c3d","status":"RUNNING"},{"i= d":"53fd11db25394308862c997dce9ef990","status":"CANCELLING"}]} > {"jobs":[{"id":"e110531c08dd4e3dbbfcf7afc1629c3d","status":"FAILED"},{"id= ":"53fd11db25394308862c997dce9ef990","status":"CANCELED"},{"id":"53fd11db25= 394308862c997dce9ef990","status":"CANCELED"}]} > {"jobs":[{"id":"53fd11db25394308862c997dce9ef990","status":"CANCELED"},{"= id":"e110531c08dd4e3dbbfcf7afc1629c3d","status":"FAILED"}]} > {"jobs":[{"id":"53fd11db25394308862c997dce9ef990","status":"CANCELED"},{"= id":"e110531c08dd4e3dbbfcf7afc1629c3d","status":"FAILED"}]} > =E2=80=A6{code} > =C2=A0 > You can see in in between that for just a moment, the endpoint returned t= he same Job ID twice. > =C2=A0 -- This message was sent by Atlassian Jira (v8.3.4#803005)