ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Cherkasov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-9906) Added new method to get or wait for cache
Date Tue, 16 Oct 2018 21:02:00 GMT
Mikhail Cherkasov created IGNITE-9906:
-----------------------------------------

             Summary: Added new method to get or wait for cache
                 Key: IGNITE-9906
                 URL: https://issues.apache.org/jira/browse/IGNITE-9906
             Project: Ignite
          Issue Type: Improvement
            Reporter: Mikhail Cherkasov
            Assignee: Mikhail Cherkasov
         Attachments: Client.java, Server.java

Due async nature of Ignite, ignite client might get cache creation event later then the rest
of cluster and if server node created cache and pass it name to client, client might fail
to get this cache, client.cache(name) will return null:
 # server creates cache server.getOrCreateCache() and return from getOrCreateCache method
 # server sends the cache name to client
 # client does client.cache(cacheName) and get null.

It can be workaround by adding retirees, but it's a boilerplate code that we can add to our
API.

we can overload existing method ignite.cache() and add timeout for waiting.

 



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

Mime
View raw message