Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-513

Java8 QueryPopularNumbers fails to start

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • sprint-2
    • sprint-2
    • None
    • None

    Description

      Branch 45. Idea. Java8 examples

      The instruction says do following:

      1. Start node ExampleNodeStartup.Passed
      2. Start StreamRandomNumbers. Passed
      3. Start QueryPopularNumbers. Failed:

      Exception in thread "main" org.apache.ignite.internal.processors.cache.IgniteCacheExistsException: Failed to start cache (a cache with the same name is already started): randomNumbers
      	at org.apache.ignite.internal.processors.cache.GridCacheProcessor.dynamicStartCache(GridCacheProcessor.java:1540)
      	at org.apache.ignite.internal.IgniteKernal.getOrCreateCache(IgniteKernal.java:2280)
      	at org.apache.ignite.examples.java8.streaming.numbers.QueryPopularNumbers.main(QueryPopularNumbers.java:49)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:483)
      	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
      

      I seems QueryPopularNumbers shouldn't start cache "randomNumbers" because it already started by StreamRandomNumbers.

      Attachments

        Activity

          People

            skozlov Sergey Kozlov
            skozlov Sergey Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: