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 5A36D200D2F for ; Wed, 18 Oct 2017 05:55:10 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 58B351609EC; Wed, 18 Oct 2017 03:55:10 +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 9E63E1609EB for ; Wed, 18 Oct 2017 05:55:09 +0200 (CEST) Received: (qmail 56399 invoked by uid 500); 18 Oct 2017 03:55:08 -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 56390 invoked by uid 99); 18 Oct 2017 03:55:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Oct 2017 03:55:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BFC6BCF061 for ; Wed, 18 Oct 2017 03:55:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-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 (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id XT2_eyVYbXw1 for ; Wed, 18 Oct 2017 03:55:07 +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 788D05FC6A for ; Wed, 18 Oct 2017 03:55:06 +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 E4402E0BCA for ; Wed, 18 Oct 2017 03:55:03 +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 C84182438C for ; Wed, 18 Oct 2017 03:55:01 +0000 (UTC) Date: Wed, 18 Oct 2017 03:55:01 +0000 (UTC) From: "Chamikara Jayalath (JIRA)" To: commits@beam.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Assigned] (BEAM-3039) DatastoreIO.Write fails multiple mutations of same entity MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 18 Oct 2017 03:55:10 -0000 [ https://issues.apache.org/jira/browse/BEAM-3039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chamikara Jayalath reassigned BEAM-3039: ---------------------------------------- Assignee: Reuven Lax (was: Chamikara Jayalath) > DatastoreIO.Write fails multiple mutations of same entity > --------------------------------------------------------- > > Key: BEAM-3039 > URL: https://issues.apache.org/jira/browse/BEAM-3039 > Project: Beam > Issue Type: Improvement > Components: sdk-java-extensions > Affects Versions: 2.3.0 > Reporter: Alexander Hoem Rosbach > Assignee: Reuven Lax > Priority: Minor > > When streaming messages from a source that doesn't guarantee once-only-delivery, but has at-least-once-delivery, then the DatastoreIO.Write will throw an exception which leads to Dataflow retrying the same commit multiple times before giving up. This leads to a significant bottleneck in the pipeline, with the end-result that the data is dropped. This should be handled better. > There are a number of ways to fix this. One of them could be to drop any duplicate mutations within one batch. Non-duplicates should also be handled in some way. Perhaps a use NON-TRANSACTIONAL commit, or make sure the mutations are commited in different commits. > {code} > com.google.datastore.v1.client.DatastoreException: A non-transactional commit may not contain multiple mutations affecting the same entity., code=INVALID_ARGUMENT > com.google.datastore.v1.client.RemoteRpc.makeException(RemoteRpc.java:126) > com.google.datastore.v1.client.RemoteRpc.makeException(RemoteRpc.java:169) > com.google.datastore.v1.client.RemoteRpc.call(RemoteRpc.java:89) > com.google.datastore.v1.client.Datastore.commit(Datastore.java:84) > org.apache.beam.sdk.io.gcp.datastore.DatastoreV1$DatastoreWriterFn.flushBatch(DatastoreV1.java:1288) > org.apache.beam.sdk.io.gcp.datastore.DatastoreV1$DatastoreWriterFn.processElement(DatastoreV1.java:1253) > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)