[infinispan-issues] [JBoss JIRA] Commented: (ISPN-232) Add service to generate a key that would map to the current instance

Sanne Grinovero (JIRA) jira-events at lists.jboss.org
Thu May 6 10:01:06 EDT 2010


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

Sanne Grinovero commented on ISPN-232:
--------------------------------------

seems definitely useful, but if I have a traditional key, how will I be able to get() the value? should I keep my own map of originalKey->currentInfinispanKey or will the service be able to care for this? I'd like to be able to get() as usually and make use of this feature transparently.

FYI this can potentially give an interesting performance boost in the way we manage the Lucene indexes.

> Add service to generate a key that would map to the current instance
> --------------------------------------------------------------------
>
>                 Key: ISPN-232
>                 URL: https://jira.jboss.org/jira/browse/ISPN-232
>             Project: Infinispan
>          Issue Type: Feature Request
>            Reporter: Mircea Markus
>            Assignee: Mircea Markus
>            Priority: Blocker
>             Fix For: 4.1.0.BETA1, 4.1.0.Final
>
>
> background: in order to obtain a hashcode that maps to the current node, the way to go is to generate random keys and pass them to the hashing algorithm until the hash for one of them will match the node. This JIRA is about creating an async service to do that, so that the calling thread won't be blocked while this happens.
> -------------------- from an email discussion
> What about adding a service to asynchronously generate and pool a number
> of ids that map to a certain node (in our use case same node)?
> Advantage would be that the calling thread won't have to wait until we
> determine an appropriate value.
> -----------

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the infinispan-issues mailing list