[infinispan-issues] [JBoss JIRA] (ISPN-2404) The current cache is not injected into Reducer

Anna Manukyan (JIRA) jira-events at lists.jboss.org
Mon Oct 15 12:05:01 EDT 2012


    [ https://issues.jboss.org/browse/ISPN-2404?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12726542#comment-12726542 ] 

Anna Manukyan commented on ISPN-2404:
-------------------------------------

OK, but the ISPN-2181 says: Allow to inject the current cache into Mapper/Reducer/Callable objects. The cache is injected to Mapper & Callable but not to Reducer.

And then why when @Input is applied to Cache object with @Inject annotation, then the cache object is completely null, and in case the cache declaration without @Input annotation, the default cache is injected?

@Inject
Cache<String, String> cache;    => works - the default cache is injected;

@Inject
@Input
Cache<String, String> cache;    => the cache variable is null

                
> The current cache is not injected into Reducer
> ----------------------------------------------
>
>                 Key: ISPN-2404
>                 URL: https://issues.jboss.org/browse/ISPN-2404
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Distributed Execution and Map/Reduce
>            Reporter: Anna Manukyan
>            Assignee: Vladimir Blagojevic
>
> The bug relates to ISPN-2181. 
> The current cache is not injected into Reducer. 
> The cache is not injected at all when the @Input annotation is used. 
> The pull request with the reproduction and verification case is: 
> https://github.com/infinispan/infinispan/pull/1394

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list