Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Infinite Loop using zones
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ctasada  
View profile  
 More options Jun 18 2012, 7:49 am
From: ctasada <ctas...@gmail.com>
Date: Mon, 18 Jun 2012 04:49:54 -0700 (PDT)
Local: Mon, Jun 18 2012 7:49 am
Subject: Infinite Loop using zones

Hi everyone,

Doing my test to migrate to a zones aware cluster, I created an small test
cluster like this:

<cluster>

    <name>cluster-zone-test</name>

    <zone>

        <zone-id>1</zone-id>

        <proximity-list>2</proximity-list>

    </zone>

    <zone>

        <zone-id>2</zone-id>

        <proximity-list>1</proximity-list>

    </zone>

    <server>

        <id>0</id>

        <host>10.162.2.145</host>

        <http-port>38188</http-port>

        <socket-port>6688</socket-port>

        <partitions>0,2,4</partitions>

        <zone-id>1</zone-id>

    </server>

    <server>

        <id>1</id>

        <host>10.162.2.145</host>

        <http-port>38288</http-port>

        <socket-port>6788</socket-port>

        <partitions>1,3,5</partitions>

        <zone-id>2</zone-id>

    </server>

</cluster>

And defined an store like this

<stores>

  <store>

    <name>test</name>

    <persistence>bdb</persistence>

    <routing>server</routing>

    <routing-strategy>zone-routing</routing-strategy>

    <!-- global replication factor -->

    <replication-factor>2</replication-factor>

    <!-- zone specific replication factors -->

    <zone-replication-factor>

       <replication-factor zone-id="1">1</replication-factor>

       <replication-factor zone-id="2">1</replication-factor>

    </zone-replication-factor>

    <zone-count-reads>0</zone-count-reads>

    <zone-count-writes>0</zone-count-writes>

    <required-reads>1</required-reads>

    <preferred-reads>1</preferred-reads>

    <required-writes>1</required-writes>

    <preferred-writes>1</preferred-writes>

    <key-serializer>

      <type>string</type>

    </key-serializer>

    <value-serializer>

      <type>string</type>

    </value-serializer>

    <hinted-handoff-strategy>consistent-handoff</hinted-handoff-strategy>

  </store>

</stores>

Once started any of the nodes I see that the server doesn't startup, its
waiting for something. After doing some debug I discovered that the server
is looping in the ConsistentHandoffStrategy constructor.

If I remove the <hinted-handoff-strategy> from the stores.xml everything
runs properly. Am I configuring something wrong?

I'll keep looking for a fix to this problem, but if someone can confirm if
it's a bug or something else, would be great :)

Regards,
Carlos


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Francois  
View profile  
 More options Jun 19 2012, 3:45 am
From: Francois <francois.vai...@ezcgroup.net>
Date: Tue, 19 Jun 2012 00:45:25 -0700 (PDT)
Local: Tues, Jun 19 2012 3:45 am
Subject: Re: Infinite Loop using zones
Hello Carlos,

Looking at your configuration, I see that W (1) + R (1) = 2, which is
not > R (2).

So you could write on one node, and read on another one a different
version, without detecting any inconsistency.

Consistent handoff looks for slop store walking down the ring and has
maybe a problem with this configuration. any-handoff (default) picks a
random node and that's it.

On Jun 18, 1:49 pm, ctasada <ctas...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Carlos Tasada  
View profile  
 More options Jun 19 2012, 9:32 am
From: Carlos Tasada <ctas...@gmail.com>
Date: Tue, 19 Jun 2012 15:32:19 +0200
Local: Tues, Jun 19 2012 9:32 am
Subject: Re: [project-voldemort] Re: Infinite Loop using zones

Hi François,

My idea is to have a simple dev environment where I read/write from a node
in one zone and the values are synced to the other node. Basically I want
to make sure that the zones are independent, but synced and that if
something happens to the communication between the zones, then the slop
store will take care of the sync.

Probably for my tests I could simply use any-handoff, but I want to make
sure the whole thing works in the production environment. Also if the
problem is what you're pointing to, the I thing there's some check missing
in the startup to properly complain about it.

On Tue, Jun 19, 2012 at 9:45 AM, Francois <francois.vai...@ezcgroup.net>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic