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 cust-asf.ponee.io (Postfix) with SMTP id 96492166E73 for ; Tue, 25 Jul 2017 17:10:18 +0200 (CEST) Received: (qmail 27872 invoked by uid 500); 25 Jul 2017 15:10:17 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 27804 invoked by uid 99); 25 Jul 2017 15:10:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jul 2017 15:10:15 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 7F5F9C0412 for ; Tue, 25 Jul 2017 15:10:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 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, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id QNICLnOT_QTR for ; Tue, 25 Jul 2017 15:10:13 +0000 (UTC) Received: from mail-lf0-f53.google.com (mail-lf0-f53.google.com [209.85.215.53]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 076C35FD06 for ; Tue, 25 Jul 2017 15:10:13 +0000 (UTC) Received: by mail-lf0-f53.google.com with SMTP id y15so57576488lfd.5 for ; Tue, 25 Jul 2017 08:10:12 -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=pY6DhKTbPLPyuvwVfpDOZ+hwuoMwoY+5Na9Xqlbh2AE=; b=L43Ua+h0LwXi02UKcEI22Gxm7+boUrObHgavRge9JOKaUJLkJvd2HXRW7diEp0pWiy 02mFyz33BHamGRengXc08U9PKw2Ts01FMwdvk1nbgiWNDEN1gL5jNBzGjT4K5w+J13CN Sy3IKe7tVUit2BC80AbQAtDboclGCBClDvfLSkbfiYqBOWt8GNsWmA4WGQgnAWT7KJCS TCIg7EI8AYy3Z+ksnnrl5XGN4yeIgrSSaBBSiyF5aWWpNjcYUrTsJS4+H+1ioa4obUEN jRsiAGTKpU3GXQIQ1DnVEaGm8DIw3bf/2ADRfKjWsPBU/8eznrITIZf+UGcDaJ0dqWyS 3LjQ== 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=pY6DhKTbPLPyuvwVfpDOZ+hwuoMwoY+5Na9Xqlbh2AE=; b=n+7UIs77lstPMJbDDUKXfjhl1+6CNvdnijw8+ZG9uGG2NcrklhP5+y30mSlvkTD2gq jn8YrO94SP0xZy3ztP3hDktzTW3d+qEKK04tgBebzUYCT+5g4pErjL4g2iNsmQprQyZG kpajaWSVzmpvt2MUzPszJZ/yKj9FvRoTL4VKDsJoTEXps5POoX8Ba/Q+bglm5+RafBgf QKv20GCBlF+Ttp3EBeLv1YLr09vR3ceRzIT/9zaxHfxFDTmDFkJ8P4HyRwb5KU2sHX8P wPJB9k61qd5MP/TyOAdBKZKHelET+v/fPc+tc8RtBQLBvLwWd2BE8E9MNcSf6xiGmXQK D1ZA== X-Gm-Message-State: AIVw113yYhfbXb2NazAEolu76xqe9KLc0FhtkEdsvmkAcKWZ+iENuw2/ a6Pc8NVsCA1EW167DHICUY523eeIJEyH X-Received: by 10.46.92.67 with SMTP id q64mr156455ljb.69.1500995405947; Tue, 25 Jul 2017 08:10:05 -0700 (PDT) MIME-Version: 1.0 Received: by 10.25.216.7 with HTTP; Tue, 25 Jul 2017 08:10:05 -0700 (PDT) In-Reply-To: References: From: =?UTF-8?B?0J3QuNC60L7Qu9Cw0Lkg0JjQttC40LrQvtCy?= Date: Tue, 25 Jul 2017 18:10:05 +0300 Message-ID: Subject: Re: .Net client call tx,close in other thread To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary="f40304366ac4fb2794055525b915" --f40304366ac4fb2794055525b915 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi, Pavel You can check my pull request. https://github.com/apache/ignite/pull/2334 For now I return checks so it has to fail on .Net test suite 2017-07-25 17:16 GMT+03:00 Pavel Tupitsyn : > Hi =D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B9, > > .NET test in question (TestTxStateAndExceptions) does not do any > multithreading, > everything is called from a single thread. > > I see that the latest .NET run of your pull request on TeamCity finished > successfully: > http://ci.ignite.apache.org/viewLog.html?buildId=3D738277 > > Do you still have a problem with this? If yes, how can I reproduce it? > Can you prepare a branch where the test fails, so I can run it locally? > > Thanks, > Pavel > > On Tue, Jul 25, 2017 at 4:47 PM, =D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0= =B9 =D0=98=D0=B6=D0=B8=D0=BA=D0=BE=D0=B2 > wrote: > > > Hello, Igniters. > > > > I working on issue https://issues.apache.org/jira/browse/IGNITE-5712 > > I found that .Net client perform transaction operation(`tx.close()`) in > > thread that not owns transaction. > > > > So I can't include checks for threadId in my pull request. > > > > Is it a bug or a desirable behabiour? > > > > With my new check I got following stack trace: > > > > Check: > > > > `assert (threadId() =3D=3D Thread.currentThread().getId());` > > > > Exception: > > > > Test(s) failed. System.AggregateException : One or more errors occurred= . > > ----> Apache.Ignite.Core.Common.IgniteException : Java exception > occurred > > [class=3Djava.lang.AssertionError, message=3D] ----> > > Apache.Ignite.Core.Common.JavaException : java.lang.AssertionError at > > org.apache.ignite.internal.processors.cache.transactions. > > TransactionProxyImpl.enter0(TransactionProxyImpl.java:113) > > at > > org.apache.ignite.internal.processors.cache.transactions. > > TransactionProxyImpl.enter(TransactionProxyImpl.java:106) > > at > > org.apache.ignite.internal.processors.cache.transactions. > > TransactionProxyImpl.close(TransactionProxyImpl.java:317) > > at > > org.apache.ignite.internal.processors.platform.transactions. > > PlatformTransactions.txClose(PlatformTransactions.java:136) > > at > > org.apache.ignite.internal.processors.platform.transactions. > > PlatformTransactions.processInLongOutLong(PlatformTransactions.java:178= ) > > at > > org.apache.ignite.internal.processors.platform.PlatformTargetProxyImpl. > > inLongOutLong(PlatformTargetProxyImpl.java:53) > > at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean > > includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int3= 2 > > millisecondsTimeout, CancellationToken cancellationToken) at > > System.Threading.Tasks.Task.Wait() at > > Apache.Ignite.Core.Tests.Cache.CacheAbstractTransactionalTest > > .TestTxStateAndExceptions() > > in > > c:\BuildAgent\work\820be461cd64b574\modules\platforms\dotnet\Apache. > > Ignite.Core.Tests\Cache\CacheAbstractTransactionalTest.cs:line > > 510 --IgniteException at > > Apache.Ignite.Core.Impl.Unmanaged.UnmanagedCallbacks.Error(Void* target= , > > Int32 errType, SByte* errClsChars, Int32 errClsCharsLen, SByte* > > errMsgChars, Int32 errMsgCharsLen, SByte* stackTraceChars, Int32 > > stackTraceCharsLen, Void* errData, Int32 errDataLen) in > > c:\BuildAgent\work\820be461cd64b574\modules\platforms\dotnet\Apache. > > Ignite.Core\Impl\Unmanaged\UnmanagedCallbacks.cs:line > > 1066 at > > Apache.Ignite.Core.Impl.Unmanaged.IgniteJniNativeMethods. > > TargetInLongOutLong(Void* > > ctx, Void* target, Int32 opType, Int64 val) at > > Apache.Ignite.Core.Impl.Unmanaged.UnmanagedUtils.TargetInLongOutLong( > > IUnmanagedTarget > > target, Int32 opType, Int64 memPtr) in > > c:\BuildAgent\work\820be461cd64b574\modules\platforms\dotnet\Apache. > > Ignite.Core\Impl\Unmanaged\UnmanagedUtils.cs:line > > 429 at Apache.Ignite.Core.Impl.PlatformTarget.DoOutInOp(Int32 type, > Int64 > > val) in > > c:\BuildAgent\work\820be461cd64b574\modules\platforms\dotnet\Apache. > > Ignite.Core\Impl\PlatformTarget.cs:line > > 717 at > > Apache.Ignite.Core.Impl.Transactions.TransactionsImpl. > > TxClose(TransactionImpl > > tx) in > > c:\BuildAgent\work\820be461cd64b574\modules\platforms\dotnet\Apache. > > Ignite.Core\Impl\Transactions\TransactionsImpl.cs:line > > 216 at Apache.Ignite.Core.Impl.Transactions.TransactionImpl.Close() in > > c:\BuildAgent\work\820be461cd64b574\modules\platforms\dotnet\Apache. > > Ignite.Core\Impl\Transactions\TransactionImpl.cs:line > > 442 at > > Apache.Ignite.Core.Impl.Transactions.TransactionImpl.< > > CloseWhenComplete>b__d(Task > > x) in > > c:\BuildAgent\work\820be461cd64b574\modules\platforms\dotnet\Apache. > > Ignite.Core\Impl\Transactions\TransactionImpl.cs:line > > 460 at System.Threading.Tasks.Task.Execute() --JavaException ------- > > Stderr: ------- Test started: > > CacheAbstractTransactionalTest.TestTxStateAndExceptions Test finished: > > CacheAbstractTransactionalTest.TestTxStateAndExceptions > > -- > > Nikolay Izhikov > > NIzhikov.dev@gmail.com > > > --=20 Nikolay Izhikov NIzhikov.dev@gmail.com --f40304366ac4fb2794055525b915--