Return-Path: X-Original-To: apmail-ignite-commits-archive@minotaur.apache.org Delivered-To: apmail-ignite-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1EBD818A4C for ; Fri, 13 Nov 2015 15:45:13 +0000 (UTC) Received: (qmail 56435 invoked by uid 500); 13 Nov 2015 15:45:13 -0000 Delivered-To: apmail-ignite-commits-archive@ignite.apache.org Received: (qmail 56403 invoked by uid 500); 13 Nov 2015 15:45:13 -0000 Mailing-List: contact commits-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 commits@ignite.apache.org Received: (qmail 56389 invoked by uid 99); 13 Nov 2015 15:45:13 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Nov 2015 15:45:13 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id D9419E02A2; Fri, 13 Nov 2015 15:45:12 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: agoncharuk@apache.org To: commits@ignite.apache.org Message-Id: <4790fe102ddf4caca3fdb1141a78cfff@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: ignite git commit: Ignite-perftest - Put from system thread. Date: Fri, 13 Nov 2015 15:45:12 +0000 (UTC) Repository: ignite Updated Branches: refs/heads/ignite-perftest d18fc7f2f -> df9cc29dc Ignite-perftest - Put from system thread. Project: http://git-wip-us.apache.org/repos/asf/ignite/repo Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/df9cc29d Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/df9cc29d Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/df9cc29d Branch: refs/heads/ignite-perftest Commit: df9cc29dcf14c7ddb0c6d11ca625b06c1c1220c7 Parents: d18fc7f Author: Alexey Goncharuk Authored: Fri Nov 13 18:45:08 2015 +0300 Committer: Alexey Goncharuk Committed: Fri Nov 13 18:45:08 2015 +0300 ---------------------------------------------------------------------- .../yardstick/cache/IgnitePutTxBenchmark.java | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ignite/blob/df9cc29d/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgnitePutTxBenchmark.java ---------------------------------------------------------------------- diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgnitePutTxBenchmark.java b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgnitePutTxBenchmark.java index c31ca75..799e89c 100644 --- a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgnitePutTxBenchmark.java +++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgnitePutTxBenchmark.java @@ -17,10 +17,7 @@ package org.apache.ignite.yardstick.cache; -import java.util.concurrent.Callable; import org.apache.ignite.*; -import org.apache.ignite.internal.IgniteKernal; -import org.apache.ignite.lang.IgniteFuture; import org.apache.ignite.yardstick.cache.model.*; import java.util.*; @@ -29,21 +26,12 @@ import java.util.*; * Ignite benchmark that performs transactional put operations. */ public class IgnitePutTxBenchmark extends IgniteCacheAbstractBenchmark { - private Callable testCallable = new Callable() { - @Override public IgniteFuture call() throws Exception { - int key = nextRandom(args.range()); - - // Implicit transaction is used. - IgniteCache cache0 = cache.withAsync(); - cache0.put(key, new SampleValue(key)); - - return cache0.future(); - } - }; - /** {@inheritDoc} */ @Override public boolean test(Map ctx) throws Exception { - ((IgniteKernal)ignite()).context().closure().callLocalSafe(testCallable, true).get().get(); + int key = nextRandom(args.range()); + + // Implicit transaction is used. + cache.put(key, new SampleValue(key)); return true; }