ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sboi...@apache.org
Subject [1/7] ignite git commit: fixed https://issues.apache.org/jira/browse/IGNITE-2168
Date Wed, 16 Dec 2015 05:59:53 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-1537 730efdafb -> dea42fd32


fixed https://issues.apache.org/jira/browse/IGNITE-2168


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

Branch: refs/heads/ignite-1537
Commit: ed5f2798fe18896db0d3d7c169f04c72ff056eee
Parents: 301d522
Author: Yakov Zhdanov <yzhdanov@gridgain.com>
Authored: Tue Dec 15 18:20:24 2015 +0300
Committer: Yakov Zhdanov <yzhdanov@gridgain.com>
Committed: Tue Dec 15 18:20:24 2015 +0300

----------------------------------------------------------------------
 .../datagrid/store/auto/CacheBinaryAutoStoreExample.java      | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/ed5f2798/examples/src/main/java/org/apache/ignite/examples/binary/datagrid/store/auto/CacheBinaryAutoStoreExample.java
----------------------------------------------------------------------
diff --git a/examples/src/main/java/org/apache/ignite/examples/binary/datagrid/store/auto/CacheBinaryAutoStoreExample.java
b/examples/src/main/java/org/apache/ignite/examples/binary/datagrid/store/auto/CacheBinaryAutoStoreExample.java
index aa228f1..aa5eea1 100644
--- a/examples/src/main/java/org/apache/ignite/examples/binary/datagrid/store/auto/CacheBinaryAutoStoreExample.java
+++ b/examples/src/main/java/org/apache/ignite/examples/binary/datagrid/store/auto/CacheBinaryAutoStoreExample.java
@@ -18,10 +18,8 @@
 package org.apache.ignite.examples.binary.datagrid.store.auto;
 
 import java.sql.Types;
-import java.util.UUID;
 import org.apache.ignite.Ignite;
 import org.apache.ignite.IgniteCache;
-import org.apache.ignite.IgniteException;
 import org.apache.ignite.Ignition;
 import org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStore;
 import org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory;
@@ -30,8 +28,8 @@ import org.apache.ignite.cache.store.jdbc.JdbcTypeField;
 import org.apache.ignite.cache.store.jdbc.dialect.H2Dialect;
 import org.apache.ignite.configuration.CacheConfiguration;
 import org.apache.ignite.examples.ExampleNodeStartup;
-import org.apache.ignite.examples.util.DbH2ServerStartup;
 import org.apache.ignite.examples.model.Person;
+import org.apache.ignite.examples.util.DbH2ServerStartup;
 import org.apache.ignite.transactions.Transaction;
 
 import static org.apache.ignite.cache.CacheAtomicityMode.TRANSACTIONAL;
@@ -163,6 +161,9 @@ public class CacheBinaryAutoStoreExample {
 
                 System.out.println(">>> Loaded cache entries: " + cache.size());
             }
+            finally {
+                ignite.destroyCache(CACHE_NAME);
+            }
         }
     }
 }


Mime
View raw message