[jira] Updated: (ZOOKEEPER-127) Use of non-standard election ports in config breaks services

2008-10-01 Thread Benjamin Reed (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Reed updated ZOOKEEPER-127:


Resolution: Fixed
Status: Resolved  (was: Patch Available)

Committed revision 700714.

> Use of non-standard election ports in config breaks services
> 
>
> Key: ZOOKEEPER-127
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-127
> Project: Zookeeper
>  Issue Type: Bug
>  Components: quorum
>Affects Versions: 3.0.0
>Reporter: Mark Harwood
>Assignee: Flavio Paiva Junqueira
>Priority: Critical
> Fix For: 3.0.0
>
> Attachments: mhPortChanges.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch
>
>
> In QuorumCnxManager.toSend there is a call to create a connection as follows:
> channel = SocketChannel.open(new InetSocketAddress(addr, port));
> Unfortunately "addr" is the ip address of a remote server while "port" is the 
> electionPort of *this* server.
> As an example, given this configuration (taken from my zoo.cfg)
>   server.1=10.20.9.254:2881
>   server.2=10.20.9.9:2882
>   server.3=10.20.9.254:2883
> Server 3 was observed trying to make a connection to host 10.20.9.9 on port 
> 2883 and obviously failing.
> In tests where all machines use the same electionPort this bug would not 
> manifest itself.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (ZOOKEEPER-127) Use of non-standard election ports in config breaks services

2008-10-01 Thread Benjamin Reed (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Benjamin Reed updated ZOOKEEPER-127:


Hadoop Flags: [Reviewed]

+1 looks good

> Use of non-standard election ports in config breaks services
> 
>
> Key: ZOOKEEPER-127
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-127
> Project: Zookeeper
>  Issue Type: Bug
>  Components: quorum
>Affects Versions: 3.0.0
>Reporter: Mark Harwood
>Assignee: Flavio Paiva Junqueira
>Priority: Critical
> Fix For: 3.0.0
>
> Attachments: mhPortChanges.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch
>
>
> In QuorumCnxManager.toSend there is a call to create a connection as follows:
> channel = SocketChannel.open(new InetSocketAddress(addr, port));
> Unfortunately "addr" is the ip address of a remote server while "port" is the 
> electionPort of *this* server.
> As an example, given this configuration (taken from my zoo.cfg)
>   server.1=10.20.9.254:2881
>   server.2=10.20.9.9:2882
>   server.3=10.20.9.254:2883
> Server 3 was observed trying to make a connection to host 10.20.9.9 on port 
> 2883 and obviously failing.
> In tests where all machines use the same electionPort this bug would not 
> manifest itself.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (ZOOKEEPER-127) Use of non-standard election ports in config breaks services

2008-09-26 Thread Flavio Paiva Junqueira (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Flavio Paiva Junqueira updated ZOOKEEPER-127:
-

Attachment: (was: ZOOKEEPER-127.patch)

> Use of non-standard election ports in config breaks services
> 
>
> Key: ZOOKEEPER-127
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-127
> Project: Zookeeper
>  Issue Type: Bug
>  Components: quorum
>Affects Versions: 3.0.0
>Reporter: Mark Harwood
>Assignee: Flavio Paiva Junqueira
>Priority: Critical
> Fix For: 3.0.0
>
> Attachments: mhPortChanges.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch
>
>
> In QuorumCnxManager.toSend there is a call to create a connection as follows:
> channel = SocketChannel.open(new InetSocketAddress(addr, port));
> Unfortunately "addr" is the ip address of a remote server while "port" is the 
> electionPort of *this* server.
> As an example, given this configuration (taken from my zoo.cfg)
>   server.1=10.20.9.254:2881
>   server.2=10.20.9.9:2882
>   server.3=10.20.9.254:2883
> Server 3 was observed trying to make a connection to host 10.20.9.9 on port 
> 2883 and obviously failing.
> In tests where all machines use the same electionPort this bug would not 
> manifest itself.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (ZOOKEEPER-127) Use of non-standard election ports in config breaks services

2008-09-26 Thread Flavio Paiva Junqueira (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Flavio Paiva Junqueira updated ZOOKEEPER-127:
-

Attachment: ZOOKEEPER-127.patch

Two minor changes. I have replaced an import on FLETest.java and LETest.java to 
comply with changes of JIRA 21. I have asked Pat to do it here, otherwise it 
would be more work to regenerate the patch. 

> Use of non-standard election ports in config breaks services
> 
>
> Key: ZOOKEEPER-127
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-127
> Project: Zookeeper
>  Issue Type: Bug
>  Components: quorum
>Affects Versions: 3.0.0
>Reporter: Mark Harwood
>Assignee: Flavio Paiva Junqueira
>Priority: Critical
> Fix For: 3.0.0
>
> Attachments: mhPortChanges.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, ZOOKEEPER-127.patch
>
>
> In QuorumCnxManager.toSend there is a call to create a connection as follows:
> channel = SocketChannel.open(new InetSocketAddress(addr, port));
> Unfortunately "addr" is the ip address of a remote server while "port" is the 
> electionPort of *this* server.
> As an example, given this configuration (taken from my zoo.cfg)
>   server.1=10.20.9.254:2881
>   server.2=10.20.9.9:2882
>   server.3=10.20.9.254:2883
> Server 3 was observed trying to make a connection to host 10.20.9.9 on port 
> 2883 and obviously failing.
> In tests where all machines use the same electionPort this bug would not 
> manifest itself.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (ZOOKEEPER-127) Use of non-standard election ports in config breaks services

2008-09-26 Thread Flavio Paiva Junqueira (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Flavio Paiva Junqueira updated ZOOKEEPER-127:
-

Priority: Critical  (was: Minor)

> Use of non-standard election ports in config breaks services
> 
>
> Key: ZOOKEEPER-127
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-127
> Project: Zookeeper
>  Issue Type: Bug
>  Components: quorum
>Affects Versions: 3.0.0
>Reporter: Mark Harwood
>Assignee: Flavio Paiva Junqueira
>Priority: Critical
> Fix For: 3.0.0
>
> Attachments: mhPortChanges.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch
>
>
> In QuorumCnxManager.toSend there is a call to create a connection as follows:
> channel = SocketChannel.open(new InetSocketAddress(addr, port));
> Unfortunately "addr" is the ip address of a remote server while "port" is the 
> electionPort of *this* server.
> As an example, given this configuration (taken from my zoo.cfg)
>   server.1=10.20.9.254:2881
>   server.2=10.20.9.9:2882
>   server.3=10.20.9.254:2883
> Server 3 was observed trying to make a connection to host 10.20.9.9 on port 
> 2883 and obviously failing.
> In tests where all machines use the same electionPort this bug would not 
> manifest itself.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (ZOOKEEPER-127) Use of non-standard election ports in config breaks services

2008-09-25 Thread Flavio Paiva Junqueira (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Flavio Paiva Junqueira updated ZOOKEEPER-127:
-

Status: Patch Available  (was: Open)

> Use of non-standard election ports in config breaks services
> 
>
> Key: ZOOKEEPER-127
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-127
> Project: Zookeeper
>  Issue Type: Bug
>  Components: quorum
>Affects Versions: 3.0.0
>Reporter: Mark Harwood
>Assignee: Flavio Paiva Junqueira
>Priority: Minor
> Fix For: 3.0.0
>
> Attachments: mhPortChanges.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch
>
>
> In QuorumCnxManager.toSend there is a call to create a connection as follows:
> channel = SocketChannel.open(new InetSocketAddress(addr, port));
> Unfortunately "addr" is the ip address of a remote server while "port" is the 
> electionPort of *this* server.
> As an example, given this configuration (taken from my zoo.cfg)
>   server.1=10.20.9.254:2881
>   server.2=10.20.9.9:2882
>   server.3=10.20.9.254:2883
> Server 3 was observed trying to make a connection to host 10.20.9.9 on port 
> 2883 and obviously failing.
> In tests where all machines use the same electionPort this bug would not 
> manifest itself.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (ZOOKEEPER-127) Use of non-standard election ports in config breaks services

2008-09-25 Thread Flavio Paiva Junqueira (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Flavio Paiva Junqueira updated ZOOKEEPER-127:
-

Attachment: ZOOKEEPER-127.patch

This last patch improves the FLE unit test, and deals with a couple of corner 
cases in the FastLeaderElection implementation. 

> Use of non-standard election ports in config breaks services
> 
>
> Key: ZOOKEEPER-127
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-127
> Project: Zookeeper
>  Issue Type: Bug
>  Components: quorum
>Affects Versions: 3.0.0
>Reporter: Mark Harwood
>Assignee: Flavio Paiva Junqueira
>Priority: Minor
> Fix For: 3.0.0
>
> Attachments: mhPortChanges.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch
>
>
> In QuorumCnxManager.toSend there is a call to create a connection as follows:
> channel = SocketChannel.open(new InetSocketAddress(addr, port));
> Unfortunately "addr" is the ip address of a remote server while "port" is the 
> electionPort of *this* server.
> As an example, given this configuration (taken from my zoo.cfg)
>   server.1=10.20.9.254:2881
>   server.2=10.20.9.9:2882
>   server.3=10.20.9.254:2883
> Server 3 was observed trying to make a connection to host 10.20.9.9 on port 
> 2883 and obviously failing.
> In tests where all machines use the same electionPort this bug would not 
> manifest itself.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (ZOOKEEPER-127) Use of non-standard election ports in config breaks services

2008-09-23 Thread Patrick Hunt (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Patrick Hunt updated ZOOKEEPER-127:
---

Status: Open  (was: Patch Available)

Both the fle and le tests are failing on my machine:

[junit] Running org.apache.zookeeper.test.FLETest
[junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 62.084 sec
[junit] Test org.apache.zookeeper.test.FLETest FAILED
[junit] Running org.apache.zookeeper.test.LETest
[junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0.397 sec
[junit] Test org.apache.zookeeper.test.LETest FAILED

- Standard Error -
Exception in thread "Thread-23" java.lang.NullPointerException
at org.apache.zookeeper.test.FLETest$LEThread.run(FLETest.java:55)
Exception in thread "Thread-1" java.lang.NullPointerException
at org.apache.zookeeper.test.FLETest$LEThread.run(FLETest.java:55)
Exception in thread "Thread-13" java.lang.NullPointerException
at org.apache.zookeeper.test.FLETest$LEThread.run(FLETest.java:55)
Exception in thread "Thread-3" java.lang.NullPointerException
at org.apache.zookeeper.test.FLETest$LEThread.run(FLETest.java:55)
-  ---

Testcase: testLE took 62.064 sec
FAILED
Threads didn't join
junit.framework.AssertionFailedError: Threads didn't join
at org.apache.zookeeper.test.FLETest.testLE(FLETest.java:121)




LETEST

Testcase: testLE took 0.377 sec
Caused an ERROR
Address already in use
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind(Native Method)
at 
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:119)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
at 
org.apache.zookeeper.server.NIOServerCnxn$Factory.(NIOServerCnxn.java:89)
at 
org.apache.zookeeper.server.quorum.QuorumPeer.(QuorumPeer.java:327)
at org.apache.zookeeper.test.LETest.testLE(LETest.java:105)


> Use of non-standard election ports in config breaks services
> 
>
> Key: ZOOKEEPER-127
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-127
> Project: Zookeeper
>  Issue Type: Bug
>  Components: quorum
>Affects Versions: 3.0.0
>Reporter: Mark Harwood
>Assignee: Flavio Paiva Junqueira
>Priority: Minor
> Fix For: 3.0.0
>
> Attachments: mhPortChanges.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch
>
>
> In QuorumCnxManager.toSend there is a call to create a connection as follows:
> channel = SocketChannel.open(new InetSocketAddress(addr, port));
> Unfortunately "addr" is the ip address of a remote server while "port" is the 
> electionPort of *this* server.
> As an example, given this configuration (taken from my zoo.cfg)
>   server.1=10.20.9.254:2881
>   server.2=10.20.9.9:2882
>   server.3=10.20.9.254:2883
> Server 3 was observed trying to make a connection to host 10.20.9.9 on port 
> 2883 and obviously failing.
> In tests where all machines use the same electionPort this bug would not 
> manifest itself.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (ZOOKEEPER-127) Use of non-standard election ports in config breaks services

2008-09-23 Thread Flavio Paiva Junqueira (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Flavio Paiva Junqueira updated ZOOKEEPER-127:
-

Status: Patch Available  (was: Open)

> Use of non-standard election ports in config breaks services
> 
>
> Key: ZOOKEEPER-127
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-127
> Project: Zookeeper
>  Issue Type: Bug
>  Components: quorum
>Affects Versions: 3.0.0
>Reporter: Mark Harwood
>Assignee: Flavio Paiva Junqueira
>Priority: Minor
> Fix For: 3.0.0
>
> Attachments: mhPortChanges.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch
>
>
> In QuorumCnxManager.toSend there is a call to create a connection as follows:
> channel = SocketChannel.open(new InetSocketAddress(addr, port));
> Unfortunately "addr" is the ip address of a remote server while "port" is the 
> electionPort of *this* server.
> As an example, given this configuration (taken from my zoo.cfg)
>   server.1=10.20.9.254:2881
>   server.2=10.20.9.9:2882
>   server.3=10.20.9.254:2883
> Server 3 was observed trying to make a connection to host 10.20.9.9 on port 
> 2883 and obviously failing.
> In tests where all machines use the same electionPort this bug would not 
> manifest itself.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (ZOOKEEPER-127) Use of non-standard election ports in config breaks services

2008-09-19 Thread Flavio Paiva Junqueira (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Flavio Paiva Junqueira updated ZOOKEEPER-127:
-

Attachment: ZOOKEEPER-127.patch

Because 131 was committed, I had to regenerate this patch. Also, it gave me 
time to write a unit test for FastLeaderElection. I used the one Ben wrote for 
the old leader election as a basis. 

This patch:
- Fixes issues with QuorumCnxManager, in particular, servers can have different 
ports for leader election, and QuorumCnxManager uses server id to identify 
peers instead of IP address;
- Remove the challenge used in QuorumCnxManager. QuorumCnxManager uses a 
randomly generated challenge to decide whether to keep or not to keep a 
connection. This patch eliminates this challenge, and uses server id instead. 
As server id is supposed to be unique, it serves the same purpose, although it 
is simpler, and more reliable;
- Does a general cleanup of QuorumCnxManager. I have tried to address the 
comments of Austin;
- Changes the format of the ZooKeeper configuration file. Now we specify the 
leader election port as the third parameter of a server specification, as 
described in the initial description of this jira;
- Fixes a bug in FastLeaderElection. Because it uses multiple threads, there is 
currently the possibility that a peer sends inconsistent information to other 
peers;
- Adds a unit test to FastLeaderElection based on the one Ben wrote;
- Finally, because of the patch of jira 131, it touch some other parts, like 
LETest.java to comply with my changes.

 

> Use of non-standard election ports in config breaks services
> 
>
> Key: ZOOKEEPER-127
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-127
> Project: Zookeeper
>  Issue Type: Bug
>  Components: quorum
>Affects Versions: 3.0.0
>Reporter: Mark Harwood
>Assignee: Flavio Paiva Junqueira
>Priority: Minor
> Fix For: 3.0.0
>
> Attachments: mhPortChanges.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch
>
>
> In QuorumCnxManager.toSend there is a call to create a connection as follows:
> channel = SocketChannel.open(new InetSocketAddress(addr, port));
> Unfortunately "addr" is the ip address of a remote server while "port" is the 
> electionPort of *this* server.
> As an example, given this configuration (taken from my zoo.cfg)
>   server.1=10.20.9.254:2881
>   server.2=10.20.9.9:2882
>   server.3=10.20.9.254:2883
> Server 3 was observed trying to make a connection to host 10.20.9.9 on port 
> 2883 and obviously failing.
> In tests where all machines use the same electionPort this bug would not 
> manifest itself.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (ZOOKEEPER-127) Use of non-standard election ports in config breaks services

2008-09-18 Thread Flavio Paiva Junqueira (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Flavio Paiva Junqueira updated ZOOKEEPER-127:
-

Attachment: ZOOKEEPER-127.patch

This new patch also addresses a race condition in FastLeaderElection. Without 
this patch, it is possible that one of the worker threads reads the value of 
either proposedLeader, proposedZxid, or logicalclock in an inconsistent 
fashion. I have created two synchronized methods and added one synchronized 
block to have threads reading consistent values.

I have also addressed the points that Austin pointed out. Thanks, Austin!
 

> Use of non-standard election ports in config breaks services
> 
>
> Key: ZOOKEEPER-127
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-127
> Project: Zookeeper
>  Issue Type: Bug
>  Components: quorum
>Affects Versions: 3.0.0
>Reporter: Mark Harwood
>Assignee: Flavio Paiva Junqueira
>Priority: Minor
> Fix For: 3.0.0
>
> Attachments: mhPortChanges.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch, ZOOKEEPER-127.patch
>
>
> In QuorumCnxManager.toSend there is a call to create a connection as follows:
> channel = SocketChannel.open(new InetSocketAddress(addr, port));
> Unfortunately "addr" is the ip address of a remote server while "port" is the 
> electionPort of *this* server.
> As an example, given this configuration (taken from my zoo.cfg)
>   server.1=10.20.9.254:2881
>   server.2=10.20.9.9:2882
>   server.3=10.20.9.254:2883
> Server 3 was observed trying to make a connection to host 10.20.9.9 on port 
> 2883 and obviously failing.
> In tests where all machines use the same electionPort this bug would not 
> manifest itself.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (ZOOKEEPER-127) Use of non-standard election ports in config breaks services

2008-09-17 Thread Flavio Paiva Junqueira (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Flavio Paiva Junqueira updated ZOOKEEPER-127:
-

Attachment: ZOOKEEPER-127.patch

There is compilation problem with the previous patch I submitted, so consider 
this new one instead.

> Use of non-standard election ports in config breaks services
> 
>
> Key: ZOOKEEPER-127
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-127
> Project: Zookeeper
>  Issue Type: Bug
>  Components: quorum
>Affects Versions: 3.0.0
>Reporter: Mark Harwood
>Assignee: Flavio Paiva Junqueira
>Priority: Minor
> Fix For: 3.0.0
>
> Attachments: mhPortChanges.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch, ZOOKEEPER-127.patch
>
>
> In QuorumCnxManager.toSend there is a call to create a connection as follows:
> channel = SocketChannel.open(new InetSocketAddress(addr, port));
> Unfortunately "addr" is the ip address of a remote server while "port" is the 
> electionPort of *this* server.
> As an example, given this configuration (taken from my zoo.cfg)
>   server.1=10.20.9.254:2881
>   server.2=10.20.9.9:2882
>   server.3=10.20.9.254:2883
> Server 3 was observed trying to make a connection to host 10.20.9.9 on port 
> 2883 and obviously failing.
> In tests where all machines use the same electionPort this bug would not 
> manifest itself.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (ZOOKEEPER-127) Use of non-standard election ports in config breaks services

2008-09-16 Thread Flavio Paiva Junqueira (JIRA)

 [ 
https://issues.apache.org/jira/browse/ZOOKEEPER-127?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Flavio Paiva Junqueira updated ZOOKEEPER-127:
-

Attachment: ZOOKEEPER-127.patch

This patch chenges the way we pass in the configuration file the port number 
used for leader election. It also changes the references to servers on 
QuorumCnxManager from InetAddress to their server ids. I have them changed the 
challenge mechanism to use the server id instead, simplifying the mechanism.

I have also implemented some of the modifications proposed in JIRA 140.

> Use of non-standard election ports in config breaks services
> 
>
> Key: ZOOKEEPER-127
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-127
> Project: Zookeeper
>  Issue Type: Bug
>  Components: quorum
>Affects Versions: 3.0.0
>Reporter: Mark Harwood
>Assignee: Flavio Paiva Junqueira
>Priority: Minor
> Fix For: 3.0.0
>
> Attachments: mhPortChanges.patch, ZOOKEEPER-127.patch, 
> ZOOKEEPER-127.patch
>
>
> In QuorumCnxManager.toSend there is a call to create a connection as follows:
> channel = SocketChannel.open(new InetSocketAddress(addr, port));
> Unfortunately "addr" is the ip address of a remote server while "port" is the 
> electionPort of *this* server.
> As an example, given this configuration (taken from my zoo.cfg)
>   server.1=10.20.9.254:2881
>   server.2=10.20.9.9:2882
>   server.3=10.20.9.254:2883
> Server 3 was observed trying to make a connection to host 10.20.9.9 on port 
> 2883 and obviously failing.
> In tests where all machines use the same electionPort this bug would not 
> manifest itself.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.