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 982EA20049D for ; Wed, 9 Aug 2017 15:00:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9694F16917C; Wed, 9 Aug 2017 13:00:37 +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 DD93916917B for ; Wed, 9 Aug 2017 15:00:36 +0200 (CEST) Received: (qmail 55563 invoked by uid 500); 9 Aug 2017 13:00:36 -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 55551 invoked by uid 99); 9 Aug 2017 13:00:35 -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, 09 Aug 2017 13:00:35 +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 50A56C3F7A for ; Wed, 9 Aug 2017 13:00:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.979 X-Spam-Level: * X-Spam-Status: No, score=1.979 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-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=gridgain-com.20150623.gappssmtp.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id SnHTSvUOJs5v for ; Wed, 9 Aug 2017 13:00:34 +0000 (UTC) Received: from mail-ua0-f180.google.com (mail-ua0-f180.google.com [209.85.217.180]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 45E3C5F3D1 for ; Wed, 9 Aug 2017 13:00:34 +0000 (UTC) Received: by mail-ua0-f180.google.com with SMTP id w45so27933877uac.5 for ; Wed, 09 Aug 2017 06:00:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gridgain-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=hf6GOTg7KvQSR+UIWkNeSgy5ElJg3Msj24DS97SDO+g=; b=ttGSk6X7njmQfAjuZVpQfaA8qFKlmUNXdILh/QBTQTHHBW52WirysS/m3L1hhaFUsf RbN8AEkmmENoQkj4/wjdoaij641i+u2jR2ge7DoNnTgPyoyEl5A3IpmKUfZRJyzFTobN 45VYYA7H+r4CFDfAMFPXADFb3z7KeMQ2zU2RJtkPDvfpzbdbXu1GiuFwSYYi5Cy0hX20 GNuMggTeY77f2QVtY+n/cfgCciV2xmtrxgvPLLAwwGpuwaNKtwQ5ftA7KKywRCrBR9Hx WB3+BHSmmLW4oXbOOshSmA7efM+mZQttNE76lV8NJYNRsK0kyU4OA3Y3Yp/5qoP9gLBb 05tQ== 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=hf6GOTg7KvQSR+UIWkNeSgy5ElJg3Msj24DS97SDO+g=; b=f+3lgrTV/MjxJ3ls/4f8L+CxlmlGqgIJYtItwvVStAeoNNEgII4j9YSpe/ZBN21sQc 4rE/3YP0VdXbkIwDMRwQplFtn6iNkDZoApash4sXAOKPv2Q5LjYeWUv3RiMUnXyZyQur 14wTtN5biJDL7PdBPFj1jtDJIPVRWwiCgdxbNi/MyBg3LASOD2pJBhJImJvdWKRenRSj MtZ26Jpd+DsbLnffOH82yjUtUby2Xt/Y527PxQ6sOEsqB7y3QfNljK07oQq03gYoL4SQ MvG1CrhYgDegFodWjQOwgwE1LYsPeUoATzoZ7A4ZePT+OwWnu9inHJatxiJfM4tfCyGH fLgQ== X-Gm-Message-State: AHYfb5jt3fdfG+hz+2d+oNtrGOfyXCSYtSttce870UGkYGf1nphNeCSK azU7Ex3gclQI0542tONtlJcYO/xqGjfs X-Received: by 10.176.26.155 with SMTP id j27mr5715409uai.45.1502283633642; Wed, 09 Aug 2017 06:00:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.2.150 with HTTP; Wed, 9 Aug 2017 06:00:33 -0700 (PDT) In-Reply-To: References: From: Vladimir Ozerov Date: Wed, 9 Aug 2017 16:00:33 +0300 Message-ID: Subject: Re: IgniteUtils#currentTimeMillis To: dev@ignite.apache.org Content-Type: multipart/alternative; boundary="f403045f280a564073055651aafe" archived-at: Wed, 09 Aug 2017 13:00:37 -0000 --f403045f280a564073055651aafe Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable In short, the reason is avoiding potential performance problems. On Wed, Aug 9, 2017 at 3:49 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: > Dmitry, > > > So, if you change the call to System.currentTimeMillis(), the test > passes? > > Yes > > > I would propose to either increase TX_TIMEOUT or sleep multiplier to ma= ke > test more reliable. > > Yes, I fix test in that way. > > For me the goal of this discussion is to understand reasons to keep curre= nt > method implementation. > > > > > 2017-08-09 15:45 GMT+03:00 Dmitriy Setrakyan : > > > On Wed, Aug 9, 2017 at 5:32 AM, =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: > > > > > Vladimir, > > > > > > As far as I can understand behaviour of U.currentTimeMillis() breaks > > > transaction timeout test: > > > > > > > So, if you change the call to System.currentTimeMillis(), the test > passes? > > > > > > -- > Nikolay Izhikov > NIzhikov.dev@gmail.com > --f403045f280a564073055651aafe--