Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id E38F6200D5E for ; Sat, 9 Dec 2017 00:27:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id E2112160C1F; Fri, 8 Dec 2017 23:27:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 34439160BFD for ; Sat, 9 Dec 2017 00:27:04 +0100 (CET) Received: (qmail 57636 invoked by uid 500); 8 Dec 2017 23:27:03 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 57627 invoked by uid 99); 8 Dec 2017 23:27:03 -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; Fri, 08 Dec 2017 23:27:03 +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 D7CB81805BE for ; Fri, 8 Dec 2017 23:27:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, 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 69wGTxBkvYFJ for ; Fri, 8 Dec 2017 23:27:01 +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 2AA075F470 for ; Fri, 8 Dec 2017 23:27:01 +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 65F80E015E for ; Fri, 8 Dec 2017 23:27:00 +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 225F1273DB for ; Fri, 8 Dec 2017 23:27:00 +0000 (UTC) Date: Fri, 8 Dec 2017 23:27:00 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: commits@beam.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BEAM-3284) Python SDK, dataflow runner, the method modify_job_status is calling the wrong API endpoint MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 08 Dec 2017 23:27:05 -0000 [ https://issues.apache.org/jira/browse/BEAM-3284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16284407#comment-16284407 ] ASF GitHub Bot commented on BEAM-3284: -------------------------------------- aaltay opened a new pull request #4240: [BEAM-3284] Use the correct endpoint for modify job state URL: https://github.com/apache/beam/pull/4240 R: @udim ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: users@infra.apache.org > Python SDK, dataflow runner, the method modify_job_status is calling the wrong API endpoint > ------------------------------------------------------------------------------------------- > > Key: BEAM-3284 > URL: https://issues.apache.org/jira/browse/BEAM-3284 > Project: Beam > Issue Type: Bug > Components: runner-dataflow > Affects Versions: 2.1.0, 2.2.0 > Reporter: Ron Mahoney > Assignee: Ahmet Altay > Priority: Minor > > In the Python SDK, for dataflow runner, the method modify_job_status is calling the wrong API endpoint. Discovered while trying to cancel a job by setting the status to JOB_STATE_CANCELLED, received the following error: > {noformat} > WARNING:root:Retry with exponential backoff: waiting for 154.109699453 seconds before retrying modify_job_state because we caught exception: > TypecheckError: Type of arg is "", not "" > {noformat} > The following change fixes this: > {noformat} > diff --git a/sdks/python/apache_beam/runners/dataflow/internal/apiclient.py b/sdks/python/apache_beam/runners/dataflow/internal/apiclient.py > index edac9d7d5..1124ee182 100644 > --- a/sdks/python/apache_beam/runners/dataflow/internal/apiclient.py > +++ b/sdks/python/apache_beam/runners/dataflow/internal/apiclient.py > @@ -512,7 +512,7 @@ class DataflowApplicationClient(object): > # Other states could only be set by the service. > return False > - request = dataflow.DataflowProjectsLocationsJobsUpdateRequest() > + request = dataflow.DataflowProjectsJobsUpdateRequest() > request.jobId = job_id > request.projectId = self.google_cloud_options.project > request.location = self.google_cloud_options.region > {noformat} -- This message was sent by Atlassian JIRA (v6.4.14#64029)