ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject ignite git commit: ignite-5075
Date Thu, 01 Jun 2017 04:44:36 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-5075 c85ccac76 -> 2549b9a44


ignite-5075


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/2549b9a4
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/2549b9a4
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/2549b9a4

Branch: refs/heads/ignite-5075
Commit: 2549b9a4474f03fe15ff3f6bd7cd499fc855ab3b
Parents: c85ccac
Author: sboikov <sboikov@gridgain.com>
Authored: Thu Jun 1 07:42:12 2017 +0300
Committer: sboikov <sboikov@gridgain.com>
Committed: Thu Jun 1 07:44:26 2017 +0300

----------------------------------------------------------------------
 .../processors/cache/IgniteCacheGroupsTest.java | 36 ++++++++++----------
 1 file changed, 18 insertions(+), 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/2549b9a4/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheGroupsTest.java
----------------------------------------------------------------------
diff --git a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheGroupsTest.java
b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheGroupsTest.java
index a56670f..93f4830 100644
--- a/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheGroupsTest.java
+++ b/modules/core/src/test/java/org/apache/ignite/internal/processors/cache/IgniteCacheGroupsTest.java
@@ -473,10 +473,10 @@ public class IgniteCacheGroupsTest extends GridCommonAbstractTest {
         if (atomicityMode == TRANSACTIONAL) {
             Ignite ignite = ignite(loc ? 0 : 1);
 
-            try (Transaction tx = ignite.transactions().txStart()) {
-                cache1 = ignite.cache(CACHE1);
-                cache2 = ignite.cache(CACHE2);
+            cache1 = ignite.cache(CACHE1);
+            cache2 = ignite.cache(CACHE2);
 
+            try (Transaction tx = ignite.transactions().txStart()) {
                 for (int i = 0; i < keys ; i++) {
                     cache1.put(i, data1[i]);
                     cache2.put(i, data2[i]);
@@ -570,10 +570,10 @@ public class IgniteCacheGroupsTest extends GridCommonAbstractTest {
         if (atomicityMode == TRANSACTIONAL) {
             Ignite ignite = ignite(loc ? 0 : 1);
 
-            try (Transaction tx = ignite.transactions().txStart()) {
-                IgniteCache<Integer, Integer> cache1 = ignite.cache(CACHE1);
-                IgniteCache<Integer, Integer> cache2 = ignite.cache(CACHE2);
+            IgniteCache<Integer, Integer> cache1 = ignite.cache(CACHE1);
+            IgniteCache<Integer, Integer> cache2 = ignite.cache(CACHE2);
 
+            try (Transaction tx = ignite.transactions().txStart()) {
                 for (int i = 0; i < keys ; i++) {
                     cache1.put(i, data1[i]);
                     cache2.put(i, data2[i]);
@@ -654,10 +654,10 @@ public class IgniteCacheGroupsTest extends GridCommonAbstractTest {
         if (atomicityMode == TRANSACTIONAL) {
             Ignite ignite = ignite(1);
 
-            try (Transaction tx = ignite.transactions().txStart()) {
-                cache1 = ignite.cache(CACHE1);
-                cache2 = ignite.cache(CACHE2);
+            cache1 = ignite.cache(CACHE1);
+            cache2 = ignite.cache(CACHE2);
 
+            try (Transaction tx = ignite.transactions().txStart()) {
                 for (int i = 0; i < keys ; i++) {
                     cache1.put(i, data1[i]);
                     cache2.put(i, data2[i]);
@@ -755,10 +755,10 @@ public class IgniteCacheGroupsTest extends GridCommonAbstractTest {
         if (atomicityMode == TRANSACTIONAL) {
             Ignite ignite = ignite(local ? 0 : 1);
 
-            try (Transaction tx = ignite.transactions().txStart()) {
-                IgniteCache cache1 = ignite.cache(CACHE1);
-                IgniteCache cache2 = ignite.cache(CACHE2);
+            IgniteCache cache1 = ignite.cache(CACHE1);
+            IgniteCache cache2 = ignite.cache(CACHE2);
 
+            try (Transaction tx = ignite.transactions().txStart()) {
                 for (int i = 0; i < keys ; i++) {
                     cache1.put(i, data1[i]);
                     cache2.put(i, data2[i]);
@@ -839,10 +839,10 @@ public class IgniteCacheGroupsTest extends GridCommonAbstractTest {
         if (atomicityMode == TRANSACTIONAL) {
             Ignite ignite = ignite(local ? 0 : 1);
 
-            try (Transaction tx = ignite.transactions().txStart()) {
-                IgniteCache cache1 = ignite.cache(CACHE1);
-                IgniteCache cache2 = ignite.cache(CACHE2);
+            IgniteCache cache1 = ignite.cache(CACHE1);
+            IgniteCache cache2 = ignite.cache(CACHE2);
 
+            try (Transaction tx = ignite.transactions().txStart()) {
                 for (int i = 0; i < keys ; i++) {
                     cache1.put(i, data1[i]);
                     cache2.put(i, data2[i]);
@@ -902,10 +902,10 @@ public class IgniteCacheGroupsTest extends GridCommonAbstractTest {
         if (atomicityMode == TRANSACTIONAL) {
             Ignite ignite = ignite(1);
 
-            try (Transaction tx = ignite.transactions().txStart()) {
-                IgniteCache cache1 = ignite.cache(CACHE1);
-                IgniteCache cache2 = ignite.cache(CACHE2);
+            IgniteCache cache1 = ignite.cache(CACHE1);
+            IgniteCache cache2 = ignite.cache(CACHE2);
 
+            try (Transaction tx = ignite.transactions().txStart()) {
                 for (int i = 0; i < keys ; i++) {
                     cache1.put(i, data1[i]);
                     cache2.put(i, data2[i]);


Mime
View raw message