ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anton Dmitriev (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-10250) Ignite Queue hangs after several read/write operations
Date Wed, 14 Nov 2018 14:04:03 GMT
Anton Dmitriev created IGNITE-10250:
---------------------------------------

             Summary: Ignite Queue hangs after several read/write operations
                 Key: IGNITE-10250
                 URL: https://issues.apache.org/jira/browse/IGNITE-10250
             Project: Ignite
          Issue Type: Bug
          Components: data structures
    Affects Versions: 2.7
            Reporter: Anton Dmitriev


Ignite Queue hangs after several read/write operations. Code to reproduce:

 

 

 
{noformat}
try (Ignite ignite = Ignition.start()) {
 IgniteQueue<Integer> queue = ignite.queue("TEST_QUEUE", 1, new CollectionConfiguration());
new Thread(() -> {
 for (int i = 0;; i++) {
 queue.put(i);
 System.out.println("Put: " + i);
 }
 }).start();
new Thread(() -> {
 for (int i = 0;; i++) {
 queue.take();
 System.out.println("Take: " + i);
 }
 }).start();
Thread.currentThread().join();
{noformat}
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message