Review Board 1.7.22


Dynamic reconfiguration, see https://issues.apache.org/jira/browse/ZOOKEEPER-107

Review Request #6707 - Created Aug. 21, 2012 and updated

Alexander Shraer
Reviewers
zookeeper
zookeeper
see https://issues.apache.org/jira/browse/ZOOKEEPER-107
New test files were added: ReconfigTest, ReconfigRecoveryTest and QuorumMajorityTest. Many other tests were modified. 
/src/zookeeper.jute
Revision 1442038 New Change
[20] 89 lines
[+20]
90
    class ReplyHeader {
90
    class ReplyHeader {
91
        int xid;
91
        int xid;
92
        long zxid;
92
        long zxid;
93
        int err;
93
        int err;
94
    }
94
    }
95
    class GetDataRequest {
95
    

    
   
96
    class GetDataRequest {       
96
        ustring path;
97
        ustring path;
97
        boolean watch;
98
        boolean watch;
98
    }
99
    }

    
   
100
    
99
    class SetDataRequest {
101
    class SetDataRequest {
100
        ustring path;
102
        ustring path;
101
        buffer data;
103
        buffer data;
102
        int version;
104
        int version;
103
    }
105
    }

    
   
106
    class ReconfigRequest {

    
   
107
        ustring joiningServers;

    
   
108
        ustring leavingServers;

    
   
109
        ustring newMembers;

    
   
110
        long curConfigId;

    
   
111
    }
104
    class SetDataResponse {
112
    class SetDataResponse {
105
        org.apache.zookeeper.data.Stat stat;
113
        org.apache.zookeeper.data.Stat stat;
106
    }
114
    }
107
    class GetSASLRequest {
115
    class GetSASLRequest {
108
        buffer token;
116
        buffer token;
[+20] [20] 100 lines
[+20]
209

    
   
217

   
210
module org.apache.zookeeper.server.quorum {
218
module org.apache.zookeeper.server.quorum {
211
    class LearnerInfo {
219
    class LearnerInfo {
212
        long serverid;
220
        long serverid;
213
        int protocolVersion;
221
        int protocolVersion;

    
   
222
        long configVersion;
214
    }
223
    }
215
    class QuorumPacket {
224
    class QuorumPacket {
216
        int type; // Request, Ack, Commit, Ping
225
        int type; // Request, Ack, Commit, Ping
217
        long zxid;
226
        long zxid;
218
        buffer data; // Only significant when type is request
227
        buffer data; // Only significant when type is request
[+20] [20] 68 lines
/src/c/include/proto.h
Revision 1442038 New Change
 
/src/c/include/zookeeper.h
Revision 1442038 New Change
 
/src/c/src/cli.c
Revision 1442038 New Change
 
/src/c/src/zookeeper.c
Revision 1442038 New Change
 
/src/c/tests/test-reconfig.py
New File
 
/src/java/main/org/apache/zookeeper/KeeperException.java
Revision 1442038 New Change
 
/src/java/main/org/apache/zookeeper/ZooDefs.java
Revision 1442038 New Change
 
/src/java/main/org/apache/zookeeper/ZooKeeper.java
Revision 1442038 New Change
 
/src/java/main/org/apache/zookeeper/ZooKeeperMain.java
Revision 1442038 New Change
 
/src/java/main/org/apache/zookeeper/cli/GetConfigCommand.java
New File
 
/src/java/main/org/apache/zookeeper/cli/ReconfigCommand.java
New File
 
/src/java/main/org/apache/zookeeper/common/StringUtils.java
Revision 1442038 New Change
 
/src/java/main/org/apache/zookeeper/server/DataTree.java
Revision 1442038 New Change
 
/src/java/main/org/apache/zookeeper/server/FinalRequestProcessor.java
Revision 1442038 New Change
 
/src/java/main/org/apache/zookeeper/server/NIOServerCnxnFactory.java
Revision 1442038 New Change
 
/src/java/main/org/apache/zookeeper/server/NettyServerCnxnFactory.java
Revision 1442038 New Change
 
/src/java/main/org/apache/zookeeper/server/PrepRequestProcessor.java
Revision 1442038 New Change
 
/src/java/main/org/apache/zookeeper/server/Request.java
Revision 1442038 New Change
 
/src/java/main/org/apache/zookeeper/server/ServerCnxnFactory.java
Revision 1442038 New Change
 
  1. /src/zookeeper.jute: Loading...
  2. /src/c/include/proto.h: Loading...
  3. /src/c/include/zookeeper.h: Loading...
  4. /src/c/src/cli.c: Loading...
  5. /src/c/src/zookeeper.c: Loading...
  6. /src/c/tests/test-reconfig.py: Loading...
  7. /src/java/main/org/apache/zookeeper/KeeperException.java: Loading...
  8. /src/java/main/org/apache/zookeeper/ZooDefs.java: Loading...
  9. /src/java/main/org/apache/zookeeper/ZooKeeper.java: Loading...
  10. /src/java/main/org/apache/zookeeper/ZooKeeperMain.java: Loading...
  11. /src/java/main/org/apache/zookeeper/cli/GetConfigCommand.java: Loading...
  12. /src/java/main/org/apache/zookeeper/cli/ReconfigCommand.java: Loading...
  13. /src/java/main/org/apache/zookeeper/common/StringUtils.java: Loading...
  14. /src/java/main/org/apache/zookeeper/server/DataTree.java: Loading...
  15. /src/java/main/org/apache/zookeeper/server/FinalRequestProcessor.java: Loading...
  16. /src/java/main/org/apache/zookeeper/server/NIOServerCnxnFactory.java: Loading...
  17. /src/java/main/org/apache/zookeeper/server/NettyServerCnxnFactory.java: Loading...
  18. /src/java/main/org/apache/zookeeper/server/PrepRequestProcessor.java: Loading...
  19. /src/java/main/org/apache/zookeeper/server/Request.java: Loading...
  20. /src/java/main/org/apache/zookeeper/server/ServerCnxnFactory.java: Loading...
This diff has been split across 3 pages: 1 2 3 >