PKG-INFO 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861
  1. Metadata-Version: 2.1
  2. Name: kazoo
  3. Version: 2.8.0
  4. Summary: Higher Level Zookeeper Client
  5. Home-page: https://kazoo.readthedocs.io
  6. Author: Kazoo team
  7. Author-email: python-zk@googlegroups.com
  8. License: Apache 2.0
  9. Description: Kazoo
  10. =====
  11. [![Build Status](https://travis-ci.org/python-zk/kazoo.svg?branch=master)](https://travis-ci.org/python-zk/kazoo)
  12. [![Latest Version](https://img.shields.io/pypi/v/kazoo.svg)](https://pypi.org/project/kazoo/)
  13. [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com)
  14. `kazoo` implements a higher level API to [Apache
  15. Zookeeper](http://zookeeper.apache.org/) for Python clients.
  16. See [the full docs](http://kazoo.rtfd.org/) for more information.
  17. License
  18. -------
  19. `kazoo` is offered under the Apache License 2.0.
  20. Authors
  21. -------
  22. `kazoo` started under the [Nimbus
  23. Project](http://www.nimbusproject.org/) and through collaboration with
  24. the open-source community has been merged with code from
  25. [Mozilla](http://www.mozilla.org/) and the [Zope
  26. Corporation](http://zope.com/). It has since gathered an active
  27. community of over fifty contributors.
  28. <a name="2.8.0"></a>
  29. ## 2.8.0 (2020-07-11)
  30. #### Features
  31. * **chore:** using Github templates for issues and PRs (#610) ([eddc0976](https://github.com/python-zk/kazoo/commit/eddc0976bf1ef9d9fb97990cebbc3f9b1abe9d7d))
  32. * **core:**
  33. * Use strict regex to identify lock contenders. ([cc8ce892](https://github.com/python-zk/kazoo/commit/cc8ce8929116a1f0a2f0d088afa82ac9576395dc))
  34. * Support additionaal lock contenter patterns ([225eeecb](https://github.com/python-zk/kazoo/commit/225eeecbe66c10d46dc7928681783d17f389f13a))
  35. * **tests:**
  36. * Disable problematic hound-flake8-black integration. ([75f62a0d](https://github.com/python-zk/kazoo/commit/75f62a0dd40a9f9bdefcb04cea5ee5fcd3438c0e))
  37. * Move to pytest ([de97d74b](https://github.com/python-zk/kazoo/commit/de97d74b50b62cd2f0cddc2a04e150575d9c6bc7))
  38. * add Python 3.8 and remove Python 3.6 from the testing suite (#611) ([e4f808f7](https://github.com/python-zk/kazoo/commit/e4f808f7f0fe17e7e01468a2c54684f048e12b52))
  39. #### Performance
  40. * **core:** Use chain.from_iterable in threading.py (#614) ([13c73ec5](https://github.com/python-zk/kazoo/commit/13c73ec5f4d4f2215deb987a059051bb821674ca))
  41. #### Bug Fixes
  42. * **core:**
  43. * handle SSL_WANT_READ/WRITE errors (#619) ([cbdc4749](https://github.com/python-zk/kazoo/commit/cbdc4749edb5879099c1f9b832c055d9eeb52dea), closes [#618](https://github.com/python-zk/kazoo/issues/618))
  44. * '"is" with a literal' syntax errors (#609) ([6b6ffe62](https://github.com/python-zk/kazoo/commit/6b6ffe62a073d1ed5413c65c2d8ec94ea2fa1760))
  45. * sync() return should be unchrooted ([cbde70ac](https://github.com/python-zk/kazoo/commit/cbde70ac87435afbbacc9806c675184c7f778343), closes [#601](https://github.com/python-zk/kazoo/issues/601))
  46. #### Chore
  47. * **core:** Update matrix: add pypy3, drop py27 ([522189da](https://github.com/python-zk/kazoo/commit/522189da0f238faafc8f1db34f682f49b15ec503))
  48. * **tests:** Add coverage report on codecov.io ([bb475843](https://github.com/python-zk/kazoo/commit/bb475843905af1a2d25b1f5834085c85c28bb175))
  49. <a name="2.7.0"></a>
  50. ## 2.7.0 (2020-03-13)
  51. #### Features
  52. * **CI:** Keep only Python 3.{6,7} to CI and bump ZK versions to latests (#574) ([c293aabf](https://github.com/python-zk/kazoo/commit/c293aabf39676b94006cf736f9f75392637b8292))
  53. * **core:**
  54. * run SASL Kerberos tests as part of build ([5c461bdf](https://github.com/python-zk/kazoo/commit/5c461bdff50efd762805b40fbe283b194d175c61))
  55. * Add create2 support ([1d81f96a](https://github.com/python-zk/kazoo/commit/1d81f96a77a6fd7ae2476cd798a5cb4bf1c1d9a2))
  56. * closed states instead of lost states (#573) ([961b2f3b](https://github.com/python-zk/kazoo/commit/961b2f3be557f8314ab41f75444125222638f9cc))
  57. * improve SASL interface (#546) ([cd49b3fa](https://github.com/python-zk/kazoo/commit/cd49b3fa01136848c5e6bfafb4c241b9704f249d))
  58. * **recipe:** add support for curator SharedCount recipe (#559) ([88b657a0](https://github.com/python-zk/kazoo/commit/88b657a0977161f3815657878ba48f82a97a3846), closes [#558](https://github.com/python-zk/kazoo/issues/558))
  59. * **utils:** extend create_tcp_connection utility (#568) ([ab0cd00c](https://github.com/python-zk/kazoo/commit/ab0cd00c12624b07dcc3b2d62aa96f8f1e658f65))
  60. #### Bug Fixes
  61. * **CI:** deploying only for 1 job ([0ba3634d](https://github.com/python-zk/kazoo/commit/0ba3634d99740c9ccc2dd01924a36dffff262f8e))
  62. * **core:**
  63. * allow requests to be queued in CONNECTING state (#374) (#588) ([a636d7a6](https://github.com/python-zk/kazoo/commit/a636d7a6bb88ab9080e902983b10c8f0f1bf60a8))
  64. * Implement proper retry backoff logic with jitter. ([0bb0659c](https://github.com/python-zk/kazoo/commit/0bb0659cf3fd73714a9d75b093a75c7122e116e6))
  65. * when connection fails, close the ConnectionHandler (#577) (#579) ([c7e80503](https://github.com/python-zk/kazoo/commit/c7e80503f3be97d26ff2de27f9e424070c8181bb))
  66. * **recipe:** crash if None in znode (#569) ([ded79467](https://github.com/python-zk/kazoo/commit/ded79467a8254e43841dfeb69f7c3baa1980232c))
  67. * **tests:**
  68. * Disable JAAS isInitiator for Server ([933b38b5](https://github.com/python-zk/kazoo/commit/933b38b5506d84e05ed6f6c5c8c208a3367400da))
  69. * deactivate TCP port that was enabled by default. ([d7bed550](https://github.com/python-zk/kazoo/commit/d7bed550fee1b861eb2ee81cc685e6d08ee35c34))
  70. * capitalize the default_domain value ([7fd22bfd](https://github.com/python-zk/kazoo/commit/7fd22bfd1992b90042db7946949ce992ddfd1821))
  71. * weaker crypto when configuring Kerberos ([844df87a](https://github.com/python-zk/kazoo/commit/844df87ac83e72c155367cfe4ff4d52d34d46c99))
  72. * prefix with toxinidir variable with a / to ensure path to ensure-zookeeper-env.sh is correct ([c4d42ca7](https://github.com/python-zk/kazoo/commit/c4d42ca7722dec5332ecd4524e8d802a81e2ddca))
  73. * specify -Dfile.encoding=UTF-8 when starting the ZK JVM ([5764da0b](https://github.com/python-zk/kazoo/commit/5764da0b3c25556cb6760f68c51b387f2fd8307b))
  74. <a name="2.6.1"></a>
  75. ### 2.6.1 (2019-01-22)
  76. #### Bug Fixes
  77. * **client:** add missing paren (#550) ([1452a48f](https://github.com/python-zk/kazoo/commit/1452a48f3070fe9034314476a6fdb94ca206dede))
  78. * **core:**
  79. * support deprecated KazooRetry argument (#545) ([4242da80](https://github.com/python-zk/kazoo/commit/4242da801e8da7b76d7e88e37c3948f97a2b5aae))
  80. * reduce timeout for the first Connect() request (#540) ([2ae392e6](https://github.com/python-zk/kazoo/commit/2ae392e69c4b2daca5d8e7f0e79b7ce90423e65c))
  81. * **handlers:** make AsyncResult call all registered callbacks instantly if the handler has stopped running (#549) ([d9e0e720](https://github.com/python-zk/kazoo/commit/d9e0e7208e56c31f0abec60a3701f8d6ec1e7d32))
  82. * **recipe:**
  83. * No more memory leak when ChildrenWatch was stopped (#543) ([37bcda35](https://github.com/python-zk/kazoo/commit/37bcda357463155aba5f2383bc70528413a10f1b))
  84. * No more memory leak once TreeCache was closed (#524) ([c48f2733](https://github.com/python-zk/kazoo/commit/c48f2733f2a6b2c2941738e4208e8cfede676730))
  85. <a name="2.6.0"></a>
  86. ## 2.6.0 (2018-11-14)
  87. #### Features
  88. * **core:**
  89. * add SASL DIGEST-MD5 support ([aa2664b8](https://github.com/python-zk/kazoo/commit/aa2664b880d1456c3ccf6515c6ca42653047e272))
  90. * Added SSL support (#513) ([35ce1066](https://github.com/python-zk/kazoo/commit/35ce10669ace9d0d7e787793f0d4937d5d389f69))
  91. * **tests:**
  92. * update Zookeeper 3.5.2-alpha to 3.5.4-beta ([30330915](https://github.com/python-zk/kazoo/commit/3033091530b8f0aba13a1b8d031a7297e54006c2), closes [#477](https://github.com/python-zk/kazoo/issues/477))
  93. * update Zookeeper version from 3.4.10 to 3.4.13 ([287749b4](https://github.com/python-zk/kazoo/commit/287749b422c886f69e46d108d2ddbb5ad064773e))
  94. #### Bug Fixes
  95. * **core:**
  96. * ensure timeout argument is positive (#534) ([8c5ce118](https://github.com/python-zk/kazoo/commit/8c5ce11883a86b15bc6497706cf36abf1b36145f))
  97. * get_children with include_data=True uses GetChildren2 types (#514) ([901cba7a](https://github.com/python-zk/kazoo/commit/901cba7a40d67ec96c06abe109e3cf51a992b24d))
  98. * allow authentification in RO and RW modes ([2320ab39](https://github.com/python-zk/kazoo/commit/2320ab391f3804a9ddea9c5c86eb86467bb1dbf8))
  99. * Use a copy of auth data when reconnecting (#509) ([de20be91](https://github.com/python-zk/kazoo/commit/de20be917855713169863b65a7aa0634fb78b698))
  100. * change KazooRetry to uniformly jitter over the whole backoff interval (#521) ([60366d2c](https://github.com/python-zk/kazoo/commit/60366d2c7910fc833991fad8e04bbe33817c0544))
  101. * **recipe:** Delete lock node in queue recipe if entry already consumed ([7a8167de](https://github.com/python-zk/kazoo/commit/7a8167dea381b3a2015c869a443c96b9d5179411))
  102. #### Doc
  103. * make badges link to travis and pypi (#528) ([367a1df3](https://github.com/python-zk/kazoo/commit/367a1df35b3b168580327e9f52a4cb9c000ea750))
  104. * specify description type for pypi to render correctly ([cc4006e6](https://github.com/python-zk/kazoo/commit/cc4006e6a8ea9441b01a631f3350357a8a2e4088))
  105. * remove broken downloads badge ([47e07a96](https://github.com/python-zk/kazoo/commit/47e07a9674713b0756bce0811545c4442d40b60b))
  106. * **core:** fix broken zookeeper programmers guide link ([8ecf8a50](https://github.com/python-zk/kazoo/commit/8ecf8a50c746ab7cc588ce9ac10a91ad1d1e5f34))
  107. <a name="2.5.0"></a>
  108. ## 2.5.0 (2018-06-01)
  109. #### Performance
  110. * **recipe:** Give TreeCache standalone queue ([4456f180](https://github.com/python-zk/kazoo/commit/4456f180735a0f8520bfc42474de9d27fa01bb2c))
  111. #### Doc
  112. * Correctly document supported versions ([f860de52](https://github.com/python-zk/kazoo/commit/f860de5284e8ba7d0ed4171d9e5c5bef41f6b64d))
  113. * Add license to Wheel ([43d156de](https://github.com/python-zk/kazoo/commit/43d156de3d41173d7baf6e8edb4efa377b3732fc))
  114. * minor tweaks to contributing.md (#464) ([5837d11b](https://github.com/python-zk/kazoo/commit/5837d11bb541be1296e1b3c1842b11ceb7e743d4))
  115. #### Features
  116. * **recipe:** allow non ephemeral locking ([6f7a603d](https://github.com/python-zk/kazoo/commit/6f7a603de9f04ec46d9946c6f5b1cb6e2b913b63))
  117. #### Chore
  118. * drop python 2.6 compatible gevent ([2e8dcd38](https://github.com/python-zk/kazoo/commit/2e8dcd3836d01640f07e8de911cdfb3639f97d20))
  119. * remove debian packaging (#468) ([a28423aa](https://github.com/python-zk/kazoo/commit/a28423aac7f33111388372dec50653a3091b9045))
  120. * stop bundling virtualenv ([af9b4cab](https://github.com/python-zk/kazoo/commit/af9b4cab39982d961647afca8119816ffe7bf5e6))
  121. * remove python 3.3 from tox ([cf66474b](https://github.com/python-zk/kazoo/commit/cf66474b27b4efc9f65e292434c2fcffb697d34d))
  122. * remove `easy_install` instructions ([6e6627d5](https://github.com/python-zk/kazoo/commit/6e6627d58628dec11d127fc5508f9a1d16e9c317))
  123. #### Bug Fixes
  124. * Pass watch as keyword arg instead of positional arg (#495) ([23850792](https://github.com/python-zk/kazoo/commit/2385079267db0bea6793c4f20588644381803a98))
  125. * need gevent >= 1.2, not > 1.1 ([18f3531b](https://github.com/python-zk/kazoo/commit/18f3531b605119a547cfc4d5a4223b4b3f185405))
  126. * Remove use of "async" as a variable ([225d3369](https://github.com/python-zk/kazoo/commit/225d3369c7a0736125a9375951a079f70fbe9e79), closes [#455](https://github.com/python-zk/kazoo/issues/455))
  127. * **core:**
  128. * Fix gevent 1.3b1+ timeout import ([257b5896](https://github.com/python-zk/kazoo/commit/257b58961f7ddd9db04d6efa070739a1b0404487))
  129. * Correctly fire multiple callbacks ([0905c47b](https://github.com/python-zk/kazoo/commit/0905c47bff3cfc42382daff0d5ac81189c8ba46d))
  130. * resolve race in IAsyncResult.wait() (#487) ([4d268adf](https://github.com/python-zk/kazoo/commit/4d268adf9837836f05dde5ec81be0d7bbd759e78))
  131. * **recipe:**
  132. * conn hangs when TreeCache refreshing ([11194137](https://github.com/python-zk/kazoo/commit/111941371daec00a2ecb5d8c29b9b1d35d6aa4ff))
  133. * Unexpected exceptions break TreeCache ([db0c2d4f](https://github.com/python-zk/kazoo/commit/db0c2d4f8ab5ecfb367b7b2accfd9c52c1c91fcd))
  134. #### Refactor
  135. * Unify queue factory in various handlers ([cbd02f5c](https://github.com/python-zk/kazoo/commit/cbd02f5ccc6ea9e6dd6b5da01a0397ea649143a0))
  136. <a name="2.4.0"></a>
  137. ## 2.4.0 (2017-06-14)
  138. **PYTHON SUPPORTED VERSIONS CHANGE**: Please note that Kazoo no longer tests
  139. on Python 2.6 or 3.3. Tested versions are 2.7, 3.4, 3.5, 3.6, and PyPy. The
  140. multiple endpoint support for KazooClient may not work correctly on 2.6.
  141. #### Bug Fixes
  142. * add missed parens to LockingQueue function call. ([88cf4aa7](https://github.com/python-zk/kazoo/commit/88cf4aa7bcd1437a44f6d3aeec34989c467fcf9d))
  143. * **core:** revert PR #305 SetWatches which caused RuntimeError ([a7b45390](https://github.com/python-zk/kazoo/commit/a7b45390f3720a33c9ad3896a8a185bfb2628839))
  144. #### Features
  145. * pep8 all the things ([92880342](https://github.com/python-zk/kazoo/commit/928803420721b81962e50d425610e62b0c12e438), closes [#445](https://github.com/python-zk/kazoo/issues/445))
  146. * drop Python 2.6/3.3 official support, add 3.5/3.6 testing ([2faba9ff](https://github.com/python-zk/kazoo/commit/2faba9ff3bdeff151ac6c922bf65b2dcf9c7bd7b), closes [#441](https://github.com/python-zk/kazoo/issues/441))
  147. * **core:**
  148. * allow multiple endpoints in KazooClient hosts arg ([72a8d96c](https://github.com/python-zk/kazoo/commit/72a8d96ca188c3c2e93bd0243283539ebd6c16f1), closes [#411](https://github.com/python-zk/kazoo/issues/411))
  149. * use epoll when available to support fds > 1023 ([267e61b4](https://github.com/python-zk/kazoo/commit/267e61b4323bc13505e8933fa9b89d0591af3a69), closes [#171](https://github.com/python-zk/kazoo/issues/171))
  150. * **recipe:** Add TreeCache recipe ([ec8b337e](https://github.com/python-zk/kazoo/commit/ec8b337e6f1a4ff12e669f4b96ca98fb37ee5d8a))
  151. <a name="2.3.1"></a>
  152. ## 2.3.1 (2017-06-01)
  153. #### Chore
  154. * update MANIFEST.in to reflect changes to filenames ([c9a38c5d](https://github.com/python-zk/kazoo/commit/c9a38c5d650d6d92ff30fd3c1c792fc71db9ce02))
  155. * add travis deployment and update ZK versions ([7d5d59cb](https://github.com/python-zk/kazoo/commit/7d5d59cb049244b89625d621c9d91d9a44c4b051), closes [#436](https://github.com/python-zk/kazoo/issues/436))
  156. 2.3.0 (2017-05-31)
  157. ------------------
  158. Please note, there have been a few dozen merges that failed to update the
  159. changelog here. As such, the log here should not be considered conclusive as
  160. to the changes that are arriving in 2.3.0.
  161. Changes being made now to ensure more accuracy in the changelog will appear
  162. in all future versions going forward. Read the commit history for a better
  163. understanding of changes merged between 2.2.1 and 2.3.0.
  164. All future commits must abide by the new CONTRIBUTING.md document describing
  165. how to label commits so they can be automatically used to automatically
  166. generate an accurate changelog.
  167. *WARNING:* THIS IS THE LAST KAZOO RELEASE THAT SUPPORTS PYTHON 2.6. ALL FUTURE
  168. VERSIONS WILL REQUIRE PYTHON 2.7 AND ABOVE.
  169. ### Features
  170. - allow having observers and different sized clusters
  171. ### Bug Handling
  172. - \#372: fully resolve multiple records for hosts in the zookeeper
  173. connection string
  174. ### Documentation
  175. - Fix the recipe examples, so they actually work by connecting to
  176. ZooKeeper. Without start() they just hang and can't be killed.
  177. 2.2.1 (2015-06-17)
  178. ------------------
  179. ### Bug Handling
  180. - handle NameError with basestring on py3k.
  181. ### Documentation
  182. 2.2 (2015-06-15)
  183. ----------------
  184. ### Documentation
  185. ### Features
  186. - Issue \#234: Add support for reconfig cluster membership operation
  187. ### Bug Handling
  188. - \#315: multiple acquires of a kazoo lock using the lock recipe would
  189. block when using acquire even when non-blocking is specified (only
  190. when the lock was/has been already acquired).
  191. - \#318: At exit register takes `*args` and `**kwargs` not args and
  192. kargs
  193. ### Documentation
  194. 2.1 (2015-05-11)
  195. ----------------
  196. ### Features
  197. - Start running tests against Zookeeper 3.5.0 alpha and explicitly
  198. configure the admin.serverPort in tests to avoid port conflicts. The
  199. Zookeeper alpha version is not yet officially supported.
  200. - Integrate eventlet *handler* support into kazoo so that along with
  201. [gevent, threading] handlers there can now be a dedicated eventlet
  202. handler for projects that need to (or want to) use eventlet (such as
  203. those working in the openstack community). The
  204. `requirements_eventlet.txt` file lists the optional eventlet
  205. requirement(s) that needs to be satisfied when this new handler is
  206. used.
  207. - Use `six` to nicely handle the cross compatibility of kazoo with
  208. python 2.x and 3.x (reducing/removing the need to have custom
  209. compatibility code that replicates what six already provides).
  210. - Add `state_change_event` to
  211. `kazoo.recipe.partitioner.SetPartitioner` which is set on every
  212. state change.
  213. - Add a NonBlockingLease recipe. The recipe allows e.g. cron jobs
  214. scheduled on multiple machines to ensure that at most N instances
  215. will run a particular job, with lease timeout for graceful handover
  216. in case of node failures.
  217. ### Bug Handling
  218. - \#291: Kazoo lock recipe was only partially re-entrant in that
  219. multiple calls to acquire would obtain the the lock but the first
  220. call to release would remove the underlying lock. This would leave
  221. the X - 1 other acquire statements unprotected (and no longer
  222. holding there expected lock). To fix this the comment about that
  223. lock recipe being re-entrant has been removed and multiple acquires
  224. will now block when attempted.
  225. - \#78: Kazoo now uses socketpairs instead of pipes making it
  226. compatible with Windows.
  227. - \#144, \#221: Let client.command work with IPv6 addresses.
  228. - \#216: Fixed timeout for ConnectionHandler.\_invoke.
  229. - \#261: Creating a sequential znode under / doesn't work.
  230. - \#274: Add server\_version() retries (by default 4 attempts will be
  231. made) to better handle flakey responses.
  232. - \#271: Fixed handling of KazooState.SUSPENDED in SetPartitioner.
  233. - \#283: Fixed a race condition in SetPartitioner when party changes
  234. during handling of lock acquisition.
  235. - \#303: don't crash on random input as the hosts string.
  236. ### Documentation
  237. - \#222: Document that committed on the transaction is used to ensure
  238. only one commit and is not an indicator of whether operations in the
  239. transaction returned desired results.
  240. 2.0 (2014-06-19)
  241. ----------------
  242. ### Documentation
  243. - Extend support to Python 3.4, deprecating Python 3.2.
  244. - Issue \#198: Mention Zake as a sophisticated kazoo mock testing
  245. library.
  246. - Issue \#181: Add documentation on basic logging setup.
  247. 2.0b1 (2014-04-24)
  248. ------------------
  249. ### API Changes
  250. - Null or None data is no longer treated as "". Pull req \#165, patch
  251. by Raul Gutierrez S. This will affect how you should treat null data
  252. in a znode vs. an empty string.
  253. - Passing acl=[] to create() now works properly instead of an
  254. InvalidACLError as it returned before. Patch by Raul Gutierrez S in
  255. PR \#164.
  256. - Removed the dependency on zope.interface. The classes in the
  257. interfaces module are left for documentation purposes only (issue
  258. \#131).
  259. ### Features
  260. - Logging levels have been reduced.
  261. - Logging previously at the `logging.DEBUG` level is now logged at
  262. the `kazoo.loggingsupport.BLATHER` level (5).
  263. - Some low-level logging previously at the `logging.INFO` level is
  264. now logged at the `logging.DEBUG` level.
  265. - Issue \#133: Introduce a new environment variable
  266. ZOOKEEPER\_PORT\_OFFSET for the testing support, to run the testing
  267. cluster on a different range.
  268. ### Bug Handling
  269. - When authenticating via add\_auth() the auth data will be saved to
  270. ensure that the authentication happens on reconnect (as is the case
  271. when feeding auth data via KazooClient's constructor). PR \#172,
  272. patch by Raul Gutierrez S.
  273. - Change gevent import to remove deprecation warning when newer gevent
  274. is used. PR \#191, patch by Hiroaki Kawai.
  275. - Lock recipe was failing to use the client's sleep\_func causing
  276. issues with gevent. Issue \#150.
  277. - Calling a DataWatch or ChildrenWatch instance twice (decorator) now
  278. throws an exception as only a single function can be associated with
  279. a single watcher. Issue \#154.
  280. - Another fix for atexit handling so that when disposing of
  281. connections the atexit handler is removed. PR \#190, patch by Devaev
  282. Maxim.
  283. - Fix atexit handling for kazoo threading handler, PR \#183. Patch by
  284. Brian Wickman.
  285. - Partitioner should handle a suspended connection properly and
  286. restore an allocated state if it was allocated previously. Patch by
  287. Manish Tomar.
  288. - Issue \#167: Closing a client that was never started throws a type
  289. error. Patch by Joshua Harlow.
  290. - Passing dictionaries to KazooClient.\_\_init\_\_() wasn't actually
  291. working properly. Patch by Ryan Uber.
  292. - Issue \#119: Handler timeout takes the max of the random interval or
  293. the read timeout to ensure a negative number isn't used for the read
  294. timeout.
  295. - Fix ordering of exception catches in lock.acquire as it was
  296. capturing a parent exception before the child. Patch by ReneSac.
  297. - Fix issue with client.stop() not always setting the client state to
  298. KeeperState.CLOSED. Patch by Jyrki Pulliainen in PR \#174.
  299. - Issue \#169: Fixed pipes leaking into child processes.
  300. ### Documentation
  301. - Add section on contributing recipes, add maintainer/status
  302. information for existing recipes.
  303. - Add note about alternate use of DataWatch.
  304. 1.3.1 (2013-09-25)
  305. ------------------
  306. ### Bug Handling
  307. - \#118, \#125, \#128: Fix unknown variable in KazooClient
  308. command\_retry argument handling.
  309. - \#126: Fix KazooRetry.copy to correctly copy sleep function.
  310. - \#118: Correct session/socket timeout conversion (int vs. float).
  311. ### Documentation
  312. - \#121: Add a note about kazoo.recipe.queue.LockingQueue requiring a
  313. Zookeeper 3.4+ server.
  314. 1.3 (2013-09-05)
  315. ----------------
  316. ### Features
  317. - \#115: Limit the backends we use for SLF4J during tests.
  318. - \#112: Add IPv6 support. Patch by Dan Kruchinin.
  319. 1.2.1 (2013-08-01)
  320. ------------------
  321. ### Bug Handling
  322. - Issue \#108: Circular import fail when importing
  323. kazoo.recipe.watchers directly has now been resolved. Watchers and
  324. partitioner properly import the KazooState from
  325. kazoo.protocol.states rather than kazoo.client.
  326. - Issue \#109: Partials not usable properly as a datawatch call can
  327. now be used. All funcs will be called with 3 args and fall back to 2
  328. args if there's an argument error.
  329. - Issue \#106, \#107: client.create\_async didn't strip change root
  330. from the returned path.
  331. 1.2 (2013-07-24)
  332. ----------------
  333. ### Features
  334. - KazooClient can now be stopped more reliably even if its in the
  335. middle of a long retry sleep. This utilizes the new interrupt
  336. feature of KazooRetry which lets the sleep be broken down into
  337. chunks and an interrupt function called to determine if the retry
  338. should fail early.
  339. - Issue \#62, \#92, \#89, \#101, \#102: Allow KazooRetry to have a max
  340. deadline, transition properly when connection fails to LOST, and
  341. setup separate connection retry behavior from client command retry
  342. behavior. Patches by Mike Lundy.
  343. - Issue \#100: Make it easier to see exception context in threading
  344. and connection modules.
  345. - Issue \#85: Increase information density of logs and don't prevent
  346. dynamic reconfiguration of log levels at runtime.
  347. - Data-watchers for the same node are no longer 'stacked'. That is, if
  348. a get and an exists call occur for the same node with the same watch
  349. function, then it will be registered only once. This change results
  350. in Kazoo behaving per Zookeeper client spec regarding repeat watch
  351. use.
  352. ### Bug Handling
  353. - Issue \#53: Throw a warning upon starting if the chroot path doesn't
  354. exist so that it's more obvious when the chroot should be created
  355. before performing more operations.
  356. - Kazoo previously would let the same function be registered as a
  357. data-watch or child-watch multiple times, and then call it multiple
  358. times upon being triggered. This was non-compliant Zookeeper client
  359. behavior, the same watch can now only be registered once for the
  360. same znode path per Zookeeper client documentation.
  361. - Issue \#105: Avoid rare import lock problems by moving module
  362. imports in client.py to the module scope.
  363. - Issue \#103: Allow prefix-less sequential znodes.
  364. - Issue \#98: Extend testing ZK harness to work with different file
  365. locations on some versions of Debian/Ubuntu.
  366. - Issue \#97: Update some docstrings to reflect current state of
  367. handlers.
  368. - Issue \#62, \#92, \#89, \#101, \#102: Allow KazooRetry to have a max
  369. deadline, transition properly when connection fails to LOST, and
  370. setup separate connection retry behavior from client command retry
  371. behavior. Patches by Mike Lundy.
  372. ### API Changes
  373. - The kazoo.testing.harness.KazooTestHarness class directly inherits
  374. from unittest.TestCase and you need to ensure to call its
  375. \_\_init\_\_ method.
  376. - DataWatch no longer takes any parameters besides for the optional
  377. function during instantiation. The additional options are now
  378. implicitly True, with the user being left to ignore events as they
  379. choose. See the DataWatch API docs for more information.
  380. - Issue \#99: Better exception raised when the writer fails to close.
  381. A WriterNotClosedException that inherits from KazooException is now
  382. raised when the writer fails to close in time.
  383. 1.1 (2013-06-08)
  384. ----------------
  385. ### Features
  386. - Issue \#93: Add timeout option to lock/semaphore acquire methods.
  387. - Issue \#79 / \#90: Add ability to pass the WatchedEvent to DataWatch
  388. and ChildWatch functions.
  389. - Respect large client timeout values when closing the connection.
  390. - Add a max\_leases consistency check to the semaphore recipe.
  391. - Issue \#76: Extend testing helpers to allow customization of the
  392. Java classpath by specifying the new ZOOKEEPER\_CLASSPATH
  393. environment variable.
  394. - Issue \#65: Allow non-blocking semaphore acquisition.
  395. ### Bug Handling
  396. - Issue \#96: Provide Windows compatibility in testing harness.
  397. - Issue \#95: Handle errors deserializing connection response.
  398. - Issue \#94: Clean up stray bytes in connection pipe.
  399. - Issue \#87 / \#88: Allow re-acquiring lock after cancel.
  400. - Issue \#77: Use timeout in initial socket connection.
  401. - Issue \#69: Only ensure path once in lock and semaphore recipes.
  402. - Issue \#68: Closing the connection causes exceptions to be raised by
  403. watchers which assume the connection won't be closed when running
  404. commands.
  405. - Issue \#66: Require ping reply before sending another ping,
  406. otherwise the connection will be considered dead and a
  407. ConnectionDropped will be raised to trigger a reconnect.
  408. - Issue \#63: Watchers weren't reset on lost connection.
  409. - Issue \#58: DataWatcher failed to re-register for changes after
  410. non-existent node was created then deleted.
  411. ### API Changes
  412. - KazooClient.create\_async now supports the makepath argument.
  413. - KazooClient.ensure\_path now has an async version,
  414. ensure\_path\_async.
  415. 1.0 (2013-03-26)
  416. ----------------
  417. ### Features
  418. - Added a LockingQueue recipe. The queue first locks an item and
  419. removes it from the queue only after the consume() method is called.
  420. This enables other nodes to retake the item if an error occurs on
  421. the first node.
  422. ### Bug Handling
  423. - Issue \#50: Avoid problems with sleep function in mixed
  424. gevent/threading setup.
  425. - Issue \#56: Avoid issues with watch callbacks evaluating to false.
  426. 1.0b1 (2013-02-24)
  427. ------------------
  428. ### Features
  429. - Refactored the internal connection handler to use a single thread.
  430. It now uses a deque and pipe to signal the ZK thread that there's a
  431. new command to send, so that the ZK thread can send it, or retrieve
  432. a response. Processing ZK requests and responses serially in a
  433. single thread eliminates the need for a bunch of the locking, the
  434. peekable queue and two threads working on the same underlying
  435. socket.
  436. - Issue \#48: Added documentation for the retry helper module.
  437. - Issue \#55: Fix os.pipe file descriptor leak and introduce a
  438. KazooClient.close method. The method is particular useful in tests,
  439. where multiple KazooClients are created and closed in the same
  440. process.
  441. ### Bug Handling
  442. - Issue \#46: Avoid TypeError in GeneratorContextManager on process
  443. shutdown.
  444. - Issue \#43: Let DataWatch return node data if allow\_missing\_node
  445. is used.
  446. 0.9 (2013-01-07)
  447. ----------------
  448. ### API Changes
  449. - When a retry operation ultimately fails, it now raises a
  450. kazoo.retry.RetryFailedError exception, instead of a general
  451. Exception instance. RetryFailedError also inherits from the base
  452. KazooException.
  453. ### Features
  454. - Improvements to Debian packaging rules.
  455. ### Bug Handling
  456. - Issue \#39 / \#41: Handle connection dropped errors during session
  457. writes. Ensure client connection is re-established to a new ZK node
  458. if available.
  459. - Issue \#38: Set CLOEXEC flag on all sockets when available.
  460. - Issue \#37 / \#40: Handle timeout errors during select calls on
  461. sockets.
  462. - Issue \#36: Correctly set ConnectionHandler.writer\_stopped even if
  463. an exception is raised inside the writer, like a retry operation
  464. failing.
  465. 0.8 (2012-10-26)
  466. ----------------
  467. ### API Changes
  468. - The KazooClient.\_\_init\_\_ took as watcher argument as its second
  469. keyword argument. The argument had no effect anymore since version
  470. 0.5 and was removed.
  471. ### Bug Handling
  472. - Issue \#35: KazooClient.\_\_init\_\_ didn't pass on
  473. retry\_max\_delay to the retry helper.
  474. - Issue \#34: Be more careful while handling socket connection errors.
  475. 0.7 (2012-10-15)
  476. ----------------
  477. ### Features
  478. - DataWatch now has a allow\_missing\_node setting that allows a watch
  479. to be set on a node that doesn't exist when the DataWatch is
  480. created.
  481. - Add new Queue recipe, with optional priority support.
  482. - Add new Counter recipe.
  483. - Added debian packaging rules.
  484. ### Bug Handling
  485. - Issue \#31 fixed: Only catch KazooExceptions in catch-all calls.
  486. - Issue \#15 fixed again: Force sleep delay to be a float to appease
  487. gevent.
  488. - Issue \#29 fixed: DataWatch and ChildrenWatch properly re-register
  489. their watches on server disconnect.
  490. 0.6 (2012-09-27)
  491. ----------------
  492. ### API Changes
  493. - Node paths are assumed to be Unicode objects. Under Python 2
  494. pure-ascii strings will also be accepted. Node values are considered
  495. bytes. The byte type is an alias for str under Python 2.
  496. - New KeeperState.CONNECTED\_RO state for Zookeeper servers connected
  497. in read-only mode.
  498. - New NotReadOnlyCallError exception when issuing a write change
  499. against a server thats currently read-only.
  500. ### Features
  501. - Add support for Python 3.2, 3.3 and PyPy (only for the threading
  502. handler).
  503. - Handles connecting to Zookeeper 3.4+ read-only servers.
  504. - Automatic background scanning for a Read/Write server when connected
  505. to a server in read-only mode.
  506. - Add new Semaphore recipe.
  507. - Add a new retry\_max\_delay argument to the client and by default
  508. limit the retry delay to at most an hour regardless of exponential
  509. backoff settings.
  510. - Add new randomize\_hosts argument to KazooClient, allowing one to
  511. disable host randomization.
  512. ### Bug Handling
  513. - Fix bug with locks not handling intermediary lock contenders
  514. disappearing.
  515. - Fix bug with set\_data type check failing to catch unicode values.
  516. - Fix bug with gevent 0.13.x backport of peekable queue.
  517. - Fix PatientChildrenWatch to use handler specific sleep function.
  518. 0.5 (2012-09-06)
  519. ----------------
  520. Skipping a version to reflect the magnitude of the change. Kazoo is now
  521. a pure Python client with no C bindings. This release should run without
  522. a problem on alternate Python implementations such as PyPy and Jython.
  523. Porting to Python 3 in the future should also be much easier.
  524. ### Documentation
  525. - Docs have been restructured to handle the new classes and locations
  526. of the methods from the pure Python refactor.
  527. ### Bug Handling
  528. This change may introduce new bugs, however there is no longer the
  529. possibility of a complete Python segfault due to errors in the C library
  530. and/or the C binding.
  531. - Possible segfaults from the C lib are gone.
  532. - Password mangling due to the C lib is gone.
  533. - The party recipes didn't set their participating flag to False after
  534. leaving.
  535. ### Features
  536. - New client.command and client.server\_version API, exposing
  537. Zookeeper's four letter commands and giving access to structured
  538. version information.
  539. - Added 'include\_data' option for get\_children to include the node's
  540. Stat object.
  541. - Substantial increase in logging data with debug mode. All
  542. correspondence with the Zookeeper server can now be seen to help in
  543. debugging.
  544. ### API Changes
  545. - The testing helpers have been moved from testing.\_\_init\_\_ into a
  546. testing.harness module. The official API's of KazooTestCase and
  547. KazooTestHarness can still be directly imported from testing.
  548. - The kazoo.handlers.util module was removed.
  549. - Backwards compatible exception class aliases are provided for now in
  550. kazoo exceptions for the prior C exception names.
  551. - Unicode strings now work fine for node names and are properly
  552. converted to and from unicode objects.
  553. - The data value argument for the create and create\_async methods of
  554. the client was made optional and defaults to an empty byte string.
  555. The data value must be a byte string. Unicode values are no longer
  556. allowed and will raise a TypeError.
  557. 0.3 (2012-08-23)
  558. ----------------
  559. ### API Changes
  560. - Handler interface now has an rlock\_object for use by recipes.
  561. ### Bug Handling
  562. - Fixed password bug with updated zc-zookeeper-static release, which
  563. retains null bytes in the password properly.
  564. - Fixed reconnect hammering, so that the reconnection follows retry
  565. jitter and retry backoff's.
  566. - Fixed possible bug with using a threading.Condition in the set
  567. partitioner. Set partitioner uses new rlock\_object handler API to
  568. get an appropriate RLock for gevent.
  569. - Issue \#17 fixed: Wrap timeout exceptions with staticmethod so they
  570. can be used directly as intended. Patch by Bob Van Zant.
  571. - Fixed bug with client reconnection looping indefinitely using an
  572. expired session id.
  573. 0.2 (2012-08-12)
  574. ----------------
  575. ### Documentation
  576. - Fixed doc references to start\_async using an AsyncResult object, it
  577. uses an Event object.
  578. ### Bug Handling
  579. - Issue \#16 fixed: gevent zookeeper logging failed to handle a monkey
  580. patched logging setup. Logging is now setup such that a greenlet is
  581. used for logging messages under gevent, and the thread one is used
  582. otherwise.
  583. - Fixed bug similar to \#14 for ChildrenWatch on the session listener.
  584. - Issue \#14 fixed: DataWatch had inconsistent handling of the node it
  585. was watching not existing. DataWatch also properly spawns its
  586. \_get\_data function to avoid blocking session events.
  587. - Issue \#15 fixed: sleep\_func for SequentialGeventHandler was not
  588. set on the class appropriately leading to additional arguments being
  589. passed to gevent.sleep.
  590. - Issue \#9 fixed: Threads/greenlets didn't gracefully shut down.
  591. Handler now has a start/stop that is used by the client when calling
  592. start and stop that shuts down the handler workers. This addresses
  593. errors and warnings that could be emitted upon process shutdown
  594. regarding a clean exit of the workers.
  595. - Issue \#12 fixed: gevent 0.13 doesn't use the same
  596. start\_new\_thread as gevent 1.0 which resulted in a fully
  597. monkey-patched environment halting due to the wrong thread. Updated
  598. to use the older kazoo method of getting the real thread module
  599. object.
  600. ### API Changes
  601. - The KazooClient handler is now officially exposed as
  602. KazooClient.handler so that the appropriate sync objects can be used
  603. by end-users.
  604. - Refactored ChildrenWatcher used by SetPartitioner into a publicly
  605. exposed PatientChildrenWatch under recipe.watchers.
  606. ### Deprecations
  607. - connect/connect\_async has been renamed to start/start\_async to
  608. better match the stop to indicate connection handling. The prior
  609. names are aliased for the time being.
  610. ### Recipes
  611. - Added Barrier and DoubleBarrier implementation.
  612. 0.2b1 (2012-07-27)
  613. ------------------
  614. ### Bug Handling
  615. - ZOOKEEPER-1318: SystemError is caught and rethrown as the proper
  616. invalid state exception in older zookeeper python bindings where
  617. this issue is still valid.
  618. - ZOOKEEPER-1431: Install the latest zc-zookeeper-static library or
  619. use the packaged ubuntu one for ubuntu 12.04 or later.
  620. - ZOOKEEPER-553: State handling isn't checked via this method, we
  621. track it in a simpler manner with the watcher to ensure we know the
  622. right state.
  623. ### Features
  624. - Exponential backoff with jitter for retrying commands.
  625. - Gevent 0.13 and 1.0b support.
  626. - Lock, Party, SetPartitioner, and Election recipe implementations.
  627. - Data and Children watching API's.
  628. - State transition handling with listener registering to handle
  629. session state changes (choose to fatal the app on session
  630. expiration, etc.)
  631. - Zookeeper logging stream redirected into Python logging channel
  632. under the name 'Zookeeper'.
  633. - Base client library with handler support for threading and gevent
  634. async environments.
  635. Keywords: zookeeper lock leader configuration
  636. Platform: UNKNOWN
  637. Classifier: Development Status :: 5 - Production/Stable
  638. Classifier: License :: OSI Approved :: Apache Software License
  639. Classifier: Intended Audience :: Developers
  640. Classifier: Operating System :: OS Independent
  641. Classifier: Programming Language :: Python
  642. Classifier: Programming Language :: Python :: 2
  643. Classifier: Programming Language :: Python :: 2.7
  644. Classifier: Programming Language :: Python :: 3
  645. Classifier: Programming Language :: Python :: 3.4
  646. Classifier: Programming Language :: Python :: 3.5
  647. Classifier: Programming Language :: Python :: 3.6
  648. Classifier: Programming Language :: Python :: 3.7
  649. Classifier: Programming Language :: Python :: Implementation :: CPython
  650. Classifier: Programming Language :: Python :: Implementation :: PyPy
  651. Classifier: Topic :: Communications
  652. Classifier: Topic :: System :: Distributed Computing
  653. Classifier: Topic :: System :: Networking
  654. Description-Content-Type: text/markdown
  655. Provides-Extra: test
  656. Provides-Extra: sasl