Skip to content

Commit

Permalink
Merge pull request #81 from thibaultcha/release/1.1.0
Browse files Browse the repository at this point in the history
release: 1.1.0
  • Loading branch information
thibaultcha authored Jan 12, 2017
2 parents 8faf05a + 6d5f710 commit e690620
Show file tree
Hide file tree
Showing 17 changed files with 70 additions and 41 deletions.
37 changes: 33 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
### [Unreleased][unreleased]

### [1.1.0]
### [1.1.0] - 2016/01/12

##### Changed

- :warning: Peers are now part of different connection pools depending on their
keyspace. This can fix eventual issues when using several keyspaces with a
single peer/cluster instance. This is a breaking change:
single peer/cluster instance.
[6c0db5e](https://github.com/thibaultcha/lua-cassandra/commit/6c0db5e178daa119c6df2b40ff648349cba50799)
This is a breaking change:
```lua
-- before:
local peer = cassandra.new()
Expand All @@ -16,13 +18,14 @@ single peer/cluster instance. This is a breaking change:
-- after:
local peer = cassandra.new()
peer:connect()
peer:change_keyspace('my_keyspace') -- close the connection and opens a new one
peer:change_keyspace('my_keyspace') -- closes the underlying connection and open a new one
```

##### Added

- New `coordinator_options` for `execute()`/`batch()`/`iterate()` allowing for
more granularity in keyspace settings. Example:
more granularity in keyspace settings. Accepted options are `keyspace` and
`no_keyspace`. Example:
```lua
local Cluster = cluster.new {
keyspace = 'my_keyspace'
Expand All @@ -33,6 +36,7 @@ more granularity in keyspace settings. Example:
--no_keyspace = true -- would disable setting a keyspace for this request
})
```
[cdc6607](https://github.com/thibaultcha/lua-cassandra/commit/cdc6607d26d23d6d9e1268d3db316aaf90ce51a8)
- Support for binary protocol v4.
[#61](https://github.com/thibaultcha/lua-cassandra/pull/61)
- New `cassandra.null` CQL marshalling type. This type is different than
Expand All @@ -41,11 +45,36 @@ more granularity in keyspace settings. Example:
- Parse `SCHEMA_CHANGE` results for `FUNCTION` and `AGGREGATE`.
- The Cluster module now parses warnings contained in response frames and
logs them at the `ngx.WARN` level.
- Implement a `silent` option for `Cluster.new()` to disable logging in the
nginx error logs.
[#60](https://github.com/thibaultcha/lua-cassandra/pull/69)
- Implement a `lock_timeout` option for `Cluster.new()` to specify a max
waiting time in seconds for the cluster refreshing and requests preparing
mutexes. This option prevents such mutexes to hang for too long.
[2bd3d66](https://github.com/thibaultcha/lua-cassandra/commit/2bd3d66eb26530490391ffb0f5dc366cc9fd0874)
- The `cluster:refresh()` method now returns the list of fetched Cassandra
nodes from the cluster as a third return value.
[34f5f11](https://github.com/thibaultcha/lua-cassandra/commit/34f5f1168f5a69dddf53c5564b8577250a7fde0a)

##### Fixed

- Correctly logs the address of peers being set UP or DOWN in the warning logs.
[40fd870](https://github.com/thibaultcha/lua-cassandra/commit/40fd8705b55059e55e6687394354937d2dead2c2)
- Better error messages for SSL handshake/locking failures.
- Better handling in case the shm containing the cluster info is full. We do
not override previous values at the risk of losing cluster nodes info, but
error out with the `"no memory"` error instead.
[4520a3b](https://github.com/thibaultcha/lua-cassandra/commit/4520a3b034a7b4d9d00975c95ecf834ce263f048)
- Correctly receives read and connect timeout options.
[#71](https://github.com/thibaultcha/lua-cassandra/pull/71)
- Log the reason behind retrying a request in the `cluster` module.
[#71](https://github.com/thibaultcha/lua-cassandra/pull/71)
- Fallback on `listen_address` when `rpc_address` is "bind all" when refreshing
the cluster nodes with the `cluster` module.
[#72](https://github.com/thibaultcha/lua-cassandra/pull/72)
- Propagate the CQL version in use when marshalling CQL collection types such
as map, set, tuple or udt. We now properly marshall such nested CQL values.
[#73](https://github.com/thibaultcha/lua-cassandra/pull/73)

### [1.0.0] - 2016/07/27

Expand Down
4 changes: 2 additions & 2 deletions docs/examples/authentication.lua.html
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ <h2>authentication.lua</h2>
</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.5</a></i>
<i style="float:right;">Last updated 2016-10-17 20:28:32 </i>
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-01-12 13:41:18 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/batch.lua.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ <h2>batch.lua</h2>
</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.5</a></i>
<i style="float:right;">Last updated 2016-10-17 20:28:32 </i>
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-01-12 13:41:18 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/intro.lua.html
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ <h2>intro.lua</h2>
</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.5</a></i>
<i style="float:right;">Last updated 2016-10-17 20:28:32 </i>
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-01-12 13:41:18 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/pagination.lua.html
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ <h2>pagination.lua</h2>
</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.5</a></i>
<i style="float:right;">Last updated 2016-10-17 20:28:32 </i>
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-01-12 13:41:18 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/ssl.lua.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,8 @@ <h2>ssl.lua</h2>
</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.5</a></i>
<i style="float:right;">Last updated 2016-10-17 20:28:32 </i>
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-01-12 13:41:18 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ <h2>Examples</h2>
</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.5</a></i>
<i style="float:right;">Last updated 2016-10-17 20:28:32 </i>
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-01-12 13:41:18 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
14 changes: 7 additions & 7 deletions docs/manual/README.md.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ <h1>lua-cassandra</h1>

<h2>Contents</h2>
<ul>
<li><a href="#Installation">Installation</a></li>
<li><a href="#Usage">Usage</a></li>
<li><a href="#Examples">Examples</a></li>
<li><a href="#Credits">Credits</a></li>
<li><a href="#License">License</a></li>
<li><a href="#Installation">Installation </a></li>
<li><a href="#Usage">Usage </a></li>
<li><a href="#Examples">Examples </a></li>
<li><a href="#Credits">Credits </a></li>
<li><a href="#License">License </a></li>
</ul>


Expand Down Expand Up @@ -253,8 +253,8 @@ <h2>License</h2>
</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.5</a></i>
<i style="float:right;">Last updated 2016-10-17 20:28:32 </i>
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-01-12 13:41:18 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/cassandra.html
Original file line number Diff line number Diff line change
Expand Up @@ -1120,8 +1120,8 @@ <h3>Usage:</h3>
</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.5</a></i>
<i style="float:right;">Last updated 2016-10-17 20:28:32 </i>
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-01-12 13:41:18 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/resty.cassandra.cluster.html
Original file line number Diff line number Diff line change
Expand Up @@ -507,8 +507,8 @@ <h3>Fields:</h3>
</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.5</a></i>
<i style="float:right;">Last updated 2016-10-17 20:28:32 </i>
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-01-12 13:41:18 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/resty.cassandra.policies.lb.dc_rr.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ <h3>Usage:</h3>
</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.5</a></i>
<i style="float:right;">Last updated 2016-10-17 20:28:32 </i>
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-01-12 13:41:18 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/resty.cassandra.policies.lb.rr.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ <h3>Usage:</h3>
</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.5</a></i>
<i style="float:right;">Last updated 2016-10-17 20:28:32 </i>
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-01-12 13:41:18 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/resty.cassandra.policies.reconnection.const.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,8 @@ <h3>Usage:</h3>
</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.5</a></i>
<i style="float:right;">Last updated 2016-10-17 20:28:32 </i>
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-01-12 13:41:18 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/resty.cassandra.policies.reconnection.exp.html
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ <h3>Usage:</h3>
</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.5</a></i>
<i style="float:right;">Last updated 2016-10-17 20:28:32 </i>
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-01-12 13:41:18 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
4 changes: 2 additions & 2 deletions docs/modules/resty.cassandra.policies.retry.simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ <h3>Usage:</h3>
</div> <!-- id="content" -->
</div> <!-- id="main" -->
<div id="about">
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.5</a></i>
<i style="float:right;">Last updated 2016-10-17 20:28:32 </i>
<i>generated by <a href="http://github.com/stevedonovan/LDoc">LDoc 1.4.6</a></i>
<i style="float:right;">Last updated 2017-01-12 13:41:18 </i>
</div> <!-- id="about" -->
</div> <!-- id="container" -->
</body>
Expand Down
4 changes: 2 additions & 2 deletions lua-cassandra-1.1.0-0.rockspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package = "lua-cassandra"
version = "1.1.0-0"
source = {
url = "git://github.com/thibaultCha/lua-cassandra",
url = "git://github.com/thibaultcha/lua-cassandra",
tag = "1.1.0"
}
description = {
summary = "A pure Lua client library for Apache Cassandra",
homepage = "https://github.com/thibaultCha/lua-cassandra",
homepage = "https://github.com/thibaultcha/lua-cassandra",
license = "MIT"
}
dependencies = {
Expand Down
4 changes: 2 additions & 2 deletions lua-cassandra-dev-0.rockspec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package = "lua-cassandra"
version = "dev-0"
source = {
url = "git://github.com/thibaultCha/lua-cassandra"
url = "git://github.com/thibaultcha/lua-cassandra"
}
description = {
summary = "A pure Lua client library for Apache Cassandra",
homepage = "https://github.com/thibaultCha/lua-cassandra",
homepage = "https://github.com/thibaultcha/lua-cassandra",
license = "MIT"
}
dependencies = {
Expand Down

0 comments on commit e690620

Please sign in to comment.