Review Board 1.7.22


Add zk.updateServerList(newServerList)

Review Request #3781 - Created Feb. 7, 2012 and updated

Alexander Shraer
Reviewers
zookeeper
zookeeper
https://issues.apache.org/jira/browse/ZOOKEEPER-1355
new tests included as part of the patch
/src/c/Makefile.am
Revision 1406178 New Change
[20] 16 lines
[+20]
17
libhashtable_la_SOURCES = $(HASHTABLE_SRC)
17
libhashtable_la_SOURCES = $(HASHTABLE_SRC)
18

    
   
18

   
19
COMMON_SRC = src/zookeeper.c include/zookeeper.h include/zookeeper_version.h include/zookeeper_log.h\
19
COMMON_SRC = src/zookeeper.c include/zookeeper.h include/zookeeper_version.h include/zookeeper_log.h\
20
    src/recordio.c include/recordio.h include/proto.h \
20
    src/recordio.c include/recordio.h include/proto.h \
21
    src/zk_adaptor.h generated/zookeeper.jute.c \
21
    src/zk_adaptor.h generated/zookeeper.jute.c \
22
    src/zookeeper_log.h src/zk_log.c src/zk_hashtable.h src/zk_hashtable.c
22
    src/zookeeper_log.h src/zk_log.c src/zk_hashtable.h src/zk_hashtable.c \

    
   
23
	src/addrvec.h src/addrvec.c
23

    
   
24

   
24
# These are the symbols (classes, mostly) we want to export from our library.
25
# These are the symbols (classes, mostly) we want to export from our library.
25
EXPORT_SYMBOLS = '(zoo_|zookeeper_|zhandle|Z|format_log_message|log_message|logLevel|deallocate_|zerror|is_unrecoverable)'
26
EXPORT_SYMBOLS = '(zoo_|zookeeper_|zhandle|Z|format_log_message|log_message|logLevel|deallocate_|zerror|is_unrecoverable)'
26
noinst_LTLIBRARIES += libzkst.la
27
noinst_LTLIBRARIES += libzkst.la
27
libzkst_la_SOURCES =$(COMMON_SRC) src/st_adaptor.c
28
libzkst_la_SOURCES =$(COMMON_SRC) src/st_adaptor.c
[+20] [20] 40 lines
[+20]
68
# build and run unit tests
69
# build and run unit tests
69

    
   
70

   
70
EXTRA_DIST+=$(wildcard ${srcdir}/tests/*.cc) $(wildcard ${srcdir}/tests/*.h) \
71
EXTRA_DIST+=$(wildcard ${srcdir}/tests/*.cc) $(wildcard ${srcdir}/tests/*.h) \
71
    ${srcdir}/tests/wrappers.opt ${srcdir}/tests/wrappers-mt.opt
72
    ${srcdir}/tests/wrappers.opt ${srcdir}/tests/wrappers-mt.opt
72

    
   
73

   
73
TEST_SOURCES = tests/TestDriver.cc tests/LibCMocks.cc tests/LibCSymTable.cc \
74
# These tests are ordered in a logical manner such that each builds upon basic
74
    tests/MocksBase.cc  tests/ZKMocks.cc tests/Util.cc tests/ThreadingUtil.cc \
75
# functionality tested in prior tests. e.g. the most basic functionality is

    
   
76
# tested in TestZookeeperInit and TestZOokeeperClose and as such should be tested

    
   
77
# first as a foundation with more complex test suites to follow.

    
   
78
TEST_SOURCES = \

    
   
79
	tests/TestDriver.cc \

    
   
80
	tests/LibCMocks.cc \

    
   
81
	tests/LibCSymTable.cc \

    
   
82
	tests/MocksBase.cc \

    
   
83
	tests/ZKMocks.cc \

    
   
84
	tests/Util.cc \

    
   
85
	tests/ThreadingUtil.cc \

    
   
86
	tests/TestZookeeperInit.cc \

    
   
87
	tests/TestZookeeperClose.cc \

    
   
88
	tests/TestReconfig.cc \
75
    tests/TestClientRetry.cc \
89
    tests/TestClientRetry.cc \
76
    tests/TestOperations.cc tests/TestZookeeperInit.cc \
90
	tests/TestOperations.cc \
77
    tests/TestZookeeperClose.cc tests/TestClient.cc \
91
	tests/TestMulti.cc \
78
    tests/TestMulti.cc tests/TestWatchers.cc
92
	tests/TestClient.cc \
79

    
   
93
	tests/TestWatchers.cc
80

    
   
94

   
81
SYMBOL_WRAPPERS=$(shell cat ${srcdir}/tests/wrappers.opt)
95
SYMBOL_WRAPPERS=$(shell cat ${srcdir}/tests/wrappers.opt)
82

    
   
96

   
83
check_PROGRAMS = zktest-st
97
check_PROGRAMS = zktest-st
84
nodist_zktest_st_SOURCES = $(TEST_SOURCES)
98
nodist_zktest_st_SOURCES = $(TEST_SOURCES)
[+20] [20] 24 lines
/src/c/include/zookeeper.h
Revision 1406178 New Change
 
/src/c/src/addrvec.h
New File
 
/src/c/src/addrvec.c
New File
 
/src/c/src/mt_adaptor.c
Revision 1406178 New Change
 
/src/c/src/st_adaptor.c
Revision 1406178 New Change
 
/src/c/src/zk_adaptor.h
Revision 1406178 New Change
 
/src/c/src/zookeeper.c
Revision 1406178 New Change
 
/src/c/tests/TestReconfig.cc
New File
 
/src/c/tests/TestZookeeperClose.cc
Revision 1406178 New Change
 
/src/c/tests/TestZookeeperInit.cc
Revision 1406178 New Change
 
/src/c/tests/ZKMocks.cc
Revision 1406178 New Change
 
/src/docs/src/documentation/content/xdocs/zookeeperProgrammers.xml
Revision 1406178 New Change
 
/src/java/main/org/apache/zookeeper/ZooKeeper.java
Revision 1406178 New Change
 
/src/java/main/org/apache/zookeeper/client/HostProvider.java
Revision 1406178 New Change
 
/src/java/main/org/apache/zookeeper/client/StaticHostProvider.java
Revision 1406178 New Change
 
/src/java/test/org/apache/zookeeper/test/StaticHostProviderTest.java
Revision 1406178 New Change
 
  1. /src/c/Makefile.am: Loading...
  2. /src/c/include/zookeeper.h: Loading...
  3. /src/c/src/addrvec.h: Loading...
  4. /src/c/src/addrvec.c: Loading...
  5. /src/c/src/mt_adaptor.c: Loading...
  6. /src/c/src/st_adaptor.c: Loading...
  7. /src/c/src/zk_adaptor.h: Loading...
  8. /src/c/src/zookeeper.c: Loading...
  9. /src/c/tests/TestReconfig.cc: Loading...
  10. /src/c/tests/TestZookeeperClose.cc: Loading...
  11. /src/c/tests/TestZookeeperInit.cc: Loading...
  12. /src/c/tests/ZKMocks.cc: Loading...
  13. /src/docs/src/documentation/content/xdocs/zookeeperProgrammers.xml: Loading...
  14. /src/java/main/org/apache/zookeeper/ZooKeeper.java: Loading...
  15. /src/java/main/org/apache/zookeeper/client/HostProvider.java: Loading...
  16. /src/java/main/org/apache/zookeeper/client/StaticHostProvider.java: Loading...
  17. /src/java/test/org/apache/zookeeper/test/StaticHostProviderTest.java: Loading...