ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Kozlov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-922) Loop of getOrCreateCache hangs
Date Tue, 19 May 2015 11:23:00 GMT
Sergey Kozlov created IGNITE-922:
------------------------------------

             Summary: Loop of  getOrCreateCache hangs
                 Key: IGNITE-922
                 URL: https://issues.apache.org/jira/browse/IGNITE-922
             Project: Ignite
          Issue Type: Bug
          Components: cache
    Affects Versions: sprint-4
            Reporter: Sergey Kozlov
            Assignee: Alexey Goncharuk
             Fix For: sprint-5


1. Start node by ExampleNodeStartup
2. Run following code (I changed CachePutGetExample)
{code:title=CachePutGetExample.java|borderStyle=solid}
public static void main(String[] args) throws IgniteException {
    try (Ignite ignite = Ignition.start("examples/config/example-ignite.xml")) {
        for (int i=1; i <= 1000; i++) {
            System.out.println(">>> Iteration " + Integer.toString(i));
            try (IgniteCache<Integer, String> cache = ignite.getOrCreateCache(CACHE_NAME))
{
            }
            IgniteCache<Integer, String> cache = ignite.getOrCreateCache(CACHE_NAME);
        }
    }
}
{code}

After 40-50 iterations test program hangs. No errors and warnings on nodes found.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message