[infinispan-issues] [JBoss JIRA] (ISPN-2703) The "machine" attribute of server hinting does not work

Martin Gencur (JIRA) jira-events at lists.jboss.org
Tue Jan 15 09:18:22 EST 2013


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

Martin Gencur edited comment on ISPN-2703 at 1/15/13 9:17 AM:
--------------------------------------------------------------

Dan, let me describe the problem more thoroughly.

We are starting 3 servers but numOwners is still only 2. We expect that whenever we put certain key/value pair in the cache to node0 or node1, it will be replicated to node2 because it has different "machine" attribute (rack and site are the same for all 3 nodes).

The site/rack/machine attributes are configured in the following way:

node0:
site=primary
rack=primary
machine=primary

node1:
site=primary
rack=primary
machine=primary

node2:
site=primary
rack=primary
machine=secondary

The test we are running is located at https://svn.devel.redhat.com/repos/jboss-qa/jdg/jdg-functional-tests/trunk/remote/xml-configuration/server-hinting/machine/src/test/java/com/jboss/datagrid/test/configuration/ServerHintingConfigurationTest.java

After I added a little more logging to the test, I got the following:
Entry count - node0: 1 ,node1: 0, node2: 1
Entry count - node0: 2 ,node1: 0, node2: 2
Entry count - node0: 3 ,node1: 0, node2: 3
Entry count - node0: 4 ,node1: 0, node2: 4
Entry count - node0: 5 ,node1: 0, node2: 5
Entry count - node0: 6 ,node1: 0, node2: 6
Entry count - node0: 7 ,node1: 0, node2: 7
Entry count - node0: 8 ,node1: 0, node2: 8
Entry count - node0: 9 ,node1: 0, node2: 9
...still the same even with more iterations.

The same test already works correctly for both rack and site attributes (I mean replicating to a different site/rack) and the output then looks like this:
Entry count - node0: 0 ,node1: 1, node2: 1
Entry count - node0: 0 ,node1: 2, node2: 2
Entry count - node0: 1 ,node1: 2, node2: 3
Entry count - node0: 1 ,node1: 3, node2: 4
Entry count - node0: 2 ,node1: 3, node2: 5

 

                
      was (Author: mgencur):
    Dan, let me describe the problem more thoroughly.

We are starting 3 servers but numOwners is still only 2. We expect that whenever we put certain key/value pair in the cache to node0 or node1, it will be replicated to node2 because it has different "machine" attribute (rack and site are the same for all 3 nodes).

The site/rack/machine attributes are configured in the following way:

node0:
site=primary
rack=primary
machine=primary

node1:
site=primary
rack=primary
machine=primary

node2:
site=primary
rack=primary
machine=secondary

The test we are running is located at https://svn.devel.redhat.com/repos/jboss-qa/jdg/jdg-functional-tests/trunk/remote/xml-configuration/server-hinting/machine/src/test/java/com/jboss/datagrid/test/configuration/ServerHintingConfigurationTest.java

After I added a little more logging to the test, I got the following:
Entry count - node0: 1 ,node1: 0, node2: 1
Entry count - node0: 2 ,node1: 0, node2: 2
Entry count - node0: 3 ,node1: 0, node2: 3
Entry count - node0: 4 ,node1: 0, node2: 4
Entry count - node0: 5 ,node1: 0, node2: 5
Entry count - node0: 6 ,node1: 0, node2: 6
Entry count - node0: 7 ,node1: 0, node2: 7
Entry count - node0: 8 ,node1: 0, node2: 8
Entry count - node0: 9 ,node1: 0, node2: 9
...still the same even with more iterations.

The same test already works correctly for both rack and machine attributes (I mean replicating to a different site/rack) and the output then looks like this:
Entry count - node0: 0 ,node1: 1, node2: 1
Entry count - node0: 0 ,node1: 2, node2: 2
Entry count - node0: 1 ,node1: 2, node2: 3
Entry count - node0: 1 ,node1: 3, node2: 4
Entry count - node0: 2 ,node1: 3, node2: 5

 

                  
> The "machine" attribute of server hinting does not work
> -------------------------------------------------------
>
>                 Key: ISPN-2703
>                 URL: https://issues.jboss.org/browse/ISPN-2703
>             Project: Infinispan
>          Issue Type: Bug
>    Affects Versions: 5.2.0.Beta6
>            Reporter: Martin Gencur
>            Assignee: Dan Berindei
>            Priority: Critical
>             Fix For: 5.2.0.CR2
>
>         Attachments: trace_log_machine_attribute_failing.txt
>
>
> The rack and site attributes already work correctly. I'm creating this one issue  just for the remaining "machine" attribute.
> Will attach trace logs

--
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