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 432FB200D34 for ; Fri, 3 Nov 2017 15:37:14 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 41D07160BFB; Fri, 3 Nov 2017 14:37:14 +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 60069160BE9 for ; Fri, 3 Nov 2017 15:37:13 +0100 (CET) Received: (qmail 40922 invoked by uid 500); 3 Nov 2017 14:37:12 -0000 Mailing-List: contact user-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ignite.apache.org Delivered-To: mailing list user@ignite.apache.org Received: (qmail 40911 invoked by uid 99); 3 Nov 2017 14:37:12 -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; Fri, 03 Nov 2017 14:37:12 +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 934DCDE70B for ; Fri, 3 Nov 2017 14:37:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 KJsOvhnKV-PY for ; Fri, 3 Nov 2017 14:37:10 +0000 (UTC) Received: from mail-qt0-f170.google.com (mail-qt0-f170.google.com [209.85.216.170]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 3F7E35FC8A for ; Fri, 3 Nov 2017 14:37:10 +0000 (UTC) Received: by mail-qt0-f170.google.com with SMTP id z19so3435824qtg.11 for ; Fri, 03 Nov 2017 07:37:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=JY4XPAOPPN2ePKgS+236cUIsmGC3hECJsmIuVDvMJTk=; b=WnVZPBb3MKj0Wmn2ZbRHiOf62zveofShv6cO5qjoOIYl3Z0hyB2RxYm3Gh6OeWrrU/ jenPMhJTSRd0bOxx/tazSlJvSSRARyVtjk4UlmazU75SslVhRdHrfQFQu1Hb8ookYjdN Ko2g+PkORlHUcMsMswwl9m+0LBrP4D5JsbdD6q5X5gtBmLpxnA0fsluV56/yk7d+G3s+ M4R4PRIAKwdLKE6EdZY9R4OcAR9OlDf0hdB9Bo9UPOUMjCr+xWsLm6k5g1GDA46R8GSA dd/mCzTwlfwpJEcRZl+F/+JWdtAeh/+9nEapSsihc/Qmw9kRd5j5RUfL0yxi/yECMsgY gurg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=JY4XPAOPPN2ePKgS+236cUIsmGC3hECJsmIuVDvMJTk=; b=N41zNaLCyX96icslqNRz34vS4MNBd1uamaLXDRxI06ekYu/aka7Q3Qa6XgYgfh+8hD 8XEqhFkPcoPpdA+OqDOaKqXlI0g0cErp5Xrm4YdVkLDBn+csHME85GPnrhZhD/VWG4C5 umWWVzcxyEiQufaT9dvEVFU3khcOFcI0g05129Xdpf/07Zfzum2t//L2mbx8GxtbqivZ Zh2fJm3H54reYZx8Xu7Ik5mcubLWUFcTxVfBvGC9uLwB6WF6JC5EjvEUS8Al3NRMM99K 25ujwCxeiVEZtNQm/io097kPRRx1/+LBy5qPIiMABkBz8fJRzxoO4NgQxRbKX9Kuf83t 5I0w== X-Gm-Message-State: AJaThX6q9hbS/8Y7s6nPtFVRraB02GvqQr/7VAJBvQsz73ht+PKY1mFI YdO8yV8/46/oGakJxpzuQpgO2HRr47pZsDt9VKYnHw== X-Google-Smtp-Source: ABhQp+ROtlpChAQwaqfJdZNRZir3cRPn0Y/BeZvA26KpbQcIO/qLuAxCkR00nHHvuq1bT0n1tfF3RsHQzNfIMkJNWNo= X-Received: by 10.237.34.28 with SMTP id n28mr10588713qtc.30.1509719829240; Fri, 03 Nov 2017 07:37:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.9.23 with HTTP; Fri, 3 Nov 2017 07:37:08 -0700 (PDT) In-Reply-To: References: <1509702187097-0.post@n6.nabble.com> <1509709415175-0.post@n6.nabble.com> From: Evgenii Zhuravlev Date: Fri, 3 Nov 2017 17:37:08 +0300 Message-ID: Subject: Re: Transactions and IgniteQueue To: user@ignite.apache.org Content-Type: multipart/alternative; boundary="001a113e4e8621e1c2055d150aff" archived-at: Fri, 03 Nov 2017 14:37:14 -0000 --001a113e4e8621e1c2055d150aff Content-Type: text/plain; charset="UTF-8" /** * Commits this transaction by initiating {@code two-phase-commit} process. * * @throws IgniteException If commit failed. * @throws TransactionTimeoutException If transaction is timed out. * @throws TransactionRollbackException If transaction is automatically rolled back. * @throws TransactionOptimisticException If transaction concurrency is {@link TransactionConcurrency#OPTIMISTIC} * and commit is optimistically failed. * @throws TransactionHeuristicException If transaction has entered an unknown state. */ @IgniteAsyncSupported public void commit() throws IgniteException; 2017-11-03 17:36 GMT+03:00 Evgenii Zhuravlev : > Yes, you could see it in the javadoc for Transaction class: > > > 2017-11-03 14:43 GMT+03:00 arunkjn : > >> Thanks Evgenii. >> >> If I get a TransactionOptimisticException during the transaction will it >> be >> thrown at the time of tx.commit() ? >> >> >> >> -- >> Sent from: http://apache-ignite-users.70518.x6.nabble.com/ >> > > --001a113e4e8621e1c2055d150aff Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
/**
* Commits th= is transaction by initiating {@code two-phase-commit} process.
*
* @throws IgniteException If comm= it failed.
* @throws TransactionTimeoutException If transaction is timed out.
* @throws = Transaction= RollbackException If transaction is automatically rolled back.
*
@throws TransactionOpt= imisticException If transaction concurrency is {@link TransactionConcurrency#OPT= IMISTIC}
* and commit is optimistically failed.
* @throws TransactionHeuristicException If tra= nsaction has entered an unknown state.
*/
@IgniteAsyncSupported
public void commit() throws IgniteException;

2017-11-03 17:36 GMT+03:00 = Evgenii Zhuravlev <e.zhuravlev.wk@gmail.com>:
Yes, you could see it in the ja= vadoc for Transaction class:


201= 7-11-03 14:43 GMT+03:00 arunkjn <arunkjn@gmail.com>:
Thanks Evgenii.

If I get a TransactionOptimisticException during the transaction will it be=
thrown at the time of tx.commit() ?


--001a113e4e8621e1c2055d150aff--