Arvind created IGNITE-27291:
-------------------------------

             Summary: async does not work for cache.registerCacheEntryListener
                 Key: IGNITE-27291
                 URL: https://issues.apache.org/jira/browse/IGNITE-27291
             Project: Ignite
          Issue Type: Bug
          Components: cache
    Affects Versions: 2.17
            Reporter: Arvind


I used the cache.registerCacheEntryListener method to register my listeners 
with sync = false. But these listeners are called synchronously on the node 
which registers this listener. marking this listener as @IgniteAsyncCallback 
solves the problem. But it should work without the annotation because I am 
providing the right configuration

 

CacheEntryListenerConfiguration<Object, Object> createdListenerConfig = 
                            new MutableCacheEntryListenerConfiguration<>(
                                new SerializableListenerFactory<>(new 
KeyCreatedListener(), "CreateListenerConfig for cache: " + listenerCacheName),
                                null,  // no filter - listen to all keys
                                false, // isOldValueRequired
                                false  // isSynchronous - async callbacks
                            );
                        
                        
listenerCache.registerCacheEntryListener(expirationListenerConfig);



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to