aerospike 2.23.0 → 2.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +303 -266
- data/lib/aerospike/client.rb +25 -25
- data/lib/aerospike/command/command.rb +3 -1
- data/lib/aerospike/command/field_type.rb +25 -28
- data/lib/aerospike/exp/exp.rb +1262 -0
- data/lib/aerospike/policy/query_policy.rb +35 -2
- data/lib/aerospike/policy/scan_policy.rb +0 -2
- data/lib/aerospike/query/query_command.rb +1 -1
- data/lib/aerospike/query/query_executor.rb +73 -0
- data/lib/aerospike/query/query_partition_command.rb +266 -0
- data/lib/aerospike/query/statement.rb +7 -0
- data/lib/aerospike/query/stream_command.rb +2 -1
- data/lib/aerospike/utils/buffer.rb +26 -7
- data/lib/aerospike/version.rb +1 -1
- data/lib/aerospike.rb +2 -0
- metadata +6 -3
data/CHANGELOG.md
CHANGED
@@ -2,524 +2,561 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [2.24.0] 2022-11-15
|
6
|
+
|
7
|
+
- **New Features**
|
8
|
+
- [CLIENT-1730] Support partition queries.
|
9
|
+
- [CLIENT-1469] Support query pagination through client#query_partitions with PartitionFilter
|
10
|
+
- [CLIENT-1975] Add support for #max_records and #short_query to QueryPolicy
|
11
|
+
- [CLIENT-1976] Add support for #concurrent_nodes to QueryPolicy
|
12
|
+
|
5
13
|
## [2.23.0] 2022-10-25
|
6
14
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
15
|
+
- **New Features**
|
16
|
+
- [CLIENT-1752] Add 'EXISTS' return type for CDT read operations.
|
17
|
+
- [CLIENT-1195] Support partition scans.
|
18
|
+
- [CLIENT-1238] Support max_records on partition scans.
|
19
|
+
- [CLIENT-1940] Lint and Clean up using Rubocop.
|
12
20
|
|
13
21
|
## [2.22.0] 2022-07-14
|
14
22
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
23
|
+
- **Fixes**
|
24
|
+
- [CLIENT-1785] Fix Client#read_users to avoid error. PR #112 Thanks to [Dotan Mor](https://github.com/dotan-mor)
|
25
|
+
- [CLIENT-1787] Support multiple DNS IPs during connection.
|
26
|
+
- [CLIENT-1789] Authentication Retry fails in certain conditions.
|
19
27
|
|
20
28
|
## [2.21.1] - 2022-06-21
|
21
29
|
|
22
30
|
This s hotfix release. It is recommended to upgrade your client if you use authentication.
|
23
31
|
|
24
|
-
|
25
|
-
|
32
|
+
- **Bug Fixes**
|
33
|
+
- Fix called function name in Authenticate.
|
26
34
|
|
27
35
|
## [2.21.0] - 2022-06-07
|
28
36
|
|
29
|
-
|
30
|
-
|
37
|
+
- **New Features**
|
38
|
+
|
39
|
+
- Add support for new user management features. Adds `Client#query_role`, `Client#query_roles`, `Client#create_role`, `Client#drop_role`, `Client#grant_privileges`, `Client#revoke_privileges`. Adds the 'Role' class. Adds `UserRoles#read_info`, `UserRoles#write_info`, `UserRoles#conns_in_use` to the `UserRoles` class.
|
31
40
|
|
32
|
-
|
33
|
-
|
41
|
+
- **Improvements**
|
42
|
+
- Do not run PredExp tests for server v6+.
|
34
43
|
|
35
44
|
## [2.20.1] - 2022-05-11
|
36
45
|
|
37
|
-
|
38
|
-
|
46
|
+
- **Improvements**
|
47
|
+
- Add basic support for the new authentication protocol.
|
39
48
|
|
40
49
|
## [2.20.0] - 2021-11-08
|
41
50
|
|
42
51
|
Notice: This version of the client only supports Aerospike Server v4.9 and later. Some features will work for the older server versions, but they are not tested, nor officially supported.
|
43
52
|
|
44
|
-
|
45
|
-
* [CLIENT-1467] Support native Boolean type for server v5.6+.
|
53
|
+
- **New Features**
|
46
54
|
|
47
|
-
|
48
|
-
|
49
|
-
|
55
|
+
- [CLIENT-1467] Support native Boolean type for server v5.6+.
|
56
|
+
|
57
|
+
- **Improvements**
|
58
|
+
- Add basic support for server v4.9+ scan/queries.
|
59
|
+
- Don't check for key equality in Batch command results.
|
50
60
|
|
51
61
|
## [2.19.0] - 2020-02-09
|
52
62
|
|
53
|
-
|
54
|
-
|
55
|
-
|
63
|
+
- **Improvements**
|
64
|
+
- Remove Timeout in `wait_till_stabilized` in favor of `thread.join(timeout)` . Thanks to [Marcelo](https://github.com/MarcPer) [[#104](https://github.com/aerospike/aerospike-client-ruby/pull/104)]
|
65
|
+
- Adds `ResultCode::LOST_CONFLICT`
|
56
66
|
|
57
67
|
## [2.18.0] - 2020-12-01
|
58
68
|
|
59
|
-
|
60
|
-
|
61
|
-
|
69
|
+
- **Bug Fixes**
|
70
|
+
|
71
|
+
- Avoid panic if `Command#get_node` fails in `Command#execute`. Resolves issue #101.
|
72
|
+
- Fix wrong method invocation inside `Client#truncate` method. Thanks to [Alexander](https://github.com/selivandex)
|
62
73
|
|
63
|
-
|
64
|
-
|
74
|
+
- **Improvements**
|
75
|
+
- Added missing server error codes.
|
65
76
|
|
66
77
|
## [2.17.0] - 2020-10-15
|
67
78
|
|
68
|
-
|
69
|
-
* [CLIENT-1246] Adds missing API for Context#list_index_create and Context#map_key_create
|
79
|
+
- **New Features**
|
70
80
|
|
71
|
-
|
72
|
-
|
81
|
+
- [CLIENT-1246] Adds missing API for Context#list_index_create and Context#map_key_create
|
82
|
+
|
83
|
+
- **Bug Fixes**
|
84
|
+
- Fixed an issue were MsgPack extensions were not recursively cleared from the CDTs during unpacking.
|
73
85
|
|
74
86
|
## [2.16.0] - 2020-10-12
|
75
87
|
|
76
|
-
|
77
|
-
|
78
|
-
|
88
|
+
- **New Features**
|
89
|
+
|
90
|
+
- [CLIENT-1173], [CLIENT-1246] Support Nested CDT operations with Context.
|
91
|
+
- [CLIENT-1179], Support Bitwise operations.
|
79
92
|
|
80
|
-
|
81
|
-
|
93
|
+
- **Changes**
|
94
|
+
- `ListSortFlags` now has an `ASCENDING` option, with `DEFAULT` mapping to it.
|
82
95
|
|
83
96
|
## [2.15.0] - 2020-10-05
|
84
97
|
|
85
|
-
|
86
|
-
* [CLIENT-1254] Adds support for HyperLogLog.
|
98
|
+
- **New Features**
|
87
99
|
|
88
|
-
|
89
|
-
|
100
|
+
- [CLIENT-1254] Adds support for HyperLogLog.
|
101
|
+
|
102
|
+
- **Changes**
|
103
|
+
- `Client#operate` now uses `OperatePolicy` by default.
|
90
104
|
|
91
105
|
## [2.14.0] - 2020-08-06
|
92
106
|
|
93
|
-
|
94
|
-
|
95
|
-
|
107
|
+
- **New Features**
|
108
|
+
|
109
|
+
- Adds support for rack-aware reads.
|
110
|
+
- Adds support for client-server compression.
|
96
111
|
|
97
|
-
|
98
|
-
|
112
|
+
- **Improvements**
|
113
|
+
- Adds support for `truncate-namespace` command.
|
99
114
|
|
100
115
|
## [2.13.0] - 2020-07-17
|
101
116
|
|
102
|
-
|
103
|
-
* Adds support for replica policies.
|
117
|
+
- **New Features**
|
104
118
|
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
119
|
+
- Adds support for replica policies.
|
120
|
+
|
121
|
+
- **Improvements**
|
122
|
+
- Remove support for "old" partition tokenizer.
|
123
|
+
- Refactor how partition parser is initialized and called.
|
124
|
+
- Adds support for 'replicas' and remove the old partition table queries from the server.
|
109
125
|
|
110
126
|
## [2.12.0] - 2019-04-21
|
111
127
|
|
112
|
-
|
113
|
-
|
114
|
-
|
128
|
+
- **New Features**
|
129
|
+
|
130
|
+
- Support for predicate expressions in all transaction.
|
131
|
+
- Support for `operation.delete` in `client#operate`.
|
115
132
|
|
116
|
-
|
117
|
-
* Optimize serialization for nested structures. Thanks to [@Kacper Madej](https://github.com/madejejej)! [[#94](https://github.com/aerospike/aerospike-client-ruby/pull/94)]
|
118
|
-
* Remove `Thread#abort_on_exception` from `batch_index_command`. Thanks to [@Kacper Madej](https://github.com/madejejej)! [[#92](https://github.com/aerospike/aerospike-client-ruby/pull/92)]
|
119
|
-
* Does not allow values other than Integer, Float, String, Symbol and nil to be used as keys in Maps.
|
133
|
+
- **Improvements**
|
120
134
|
|
121
|
-
|
122
|
-
|
135
|
+
- Optimize serialization for nested structures. Thanks to [@Kacper Madej](https://github.com/madejejej)! [[#94](https://github.com/aerospike/aerospike-client-ruby/pull/94)]
|
136
|
+
- Remove `Thread#abort_on_exception` from `batch_index_command`. Thanks to [@Kacper Madej](https://github.com/madejejej)! [[#92](https://github.com/aerospike/aerospike-client-ruby/pull/92)]
|
137
|
+
- Does not allow values other than Integer, Float, String, Symbol and nil to be used as keys in Maps.
|
123
138
|
|
139
|
+
- **Bug Fixes**
|
140
|
+
- Fixes tests that weren't using ENV variables for connections. This will allow the tests to be run on any server.
|
124
141
|
|
125
142
|
## [2.11.0] - 2019-05-17
|
126
143
|
|
127
|
-
|
128
|
-
* Support for predicate expressions in queries. Thanks to [@Minus10Degrees](https://github.com/Minus10Degrees)! [[#78](https://github.com/aerospike/aerospike-client-ruby/issues/78)]
|
144
|
+
- **New Features**
|
129
145
|
|
130
|
-
|
131
|
-
|
132
|
-
|
146
|
+
- Support for predicate expressions in queries. Thanks to [@Minus10Degrees](https://github.com/Minus10Degrees)! [[#78](https://github.com/aerospike/aerospike-client-ruby/issues/78)]
|
147
|
+
|
148
|
+
- **Bug Fixes**
|
149
|
+
- Client#execute_udf_on_query should not modify the statement argument. [[#79](https://github.com/aerospike/aerospike-client-ruby/issues/79)]
|
150
|
+
- Encoding::UndefinedConversionError when reading blob data from CDT list/map bin. [[#84](https://github.com/aerospike/aerospike-client-ruby/issues/84)]
|
133
151
|
|
134
152
|
## [2.10.0] - 2019-05-10
|
135
153
|
|
136
|
-
|
137
|
-
|
154
|
+
- **New Features**
|
155
|
+
- Add support for LB discovery / seeding. Thanks to [@filiptepper](https://github.com/filiptepper)! [[#80](https://github.com/aerospike/aerospike-client-ruby/issues/80)]
|
138
156
|
|
139
157
|
## [2.9.1] - 2019-04-03
|
140
158
|
|
141
|
-
|
142
|
-
|
159
|
+
- **Bug Fixes**
|
160
|
+
|
161
|
+
- Query fails if one or more cluster nodes do not have records in the set [[#77](https://github.com/aerospike/aerospike-client-ruby/issues/77)]
|
143
162
|
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
163
|
+
- **Updates**
|
164
|
+
- Change admin message version to 2 (from 0)
|
165
|
+
- Remove unused BIN_EXISTS_ERROR (6) and BIN_NOT_FOUND (17) error codes
|
166
|
+
- Tests: Support setting user/password when running specs
|
148
167
|
|
149
168
|
## [2.9.0] - 2018-11-09
|
150
169
|
|
151
|
-
|
152
|
-
* Add INFINITY and WILDCARD values for use in CDT map/list comparators. [AER-5945]
|
170
|
+
- **New Features**
|
153
171
|
|
154
|
-
|
155
|
-
* Default policies set on Client instance do not get applied [[#74](https://github.com/aerospike/aerospike-client-ruby/issues/74)]
|
172
|
+
- Add INFINITY and WILDCARD values for use in CDT map/list comparators. [AER-5945]
|
156
173
|
|
157
|
-
|
158
|
-
|
159
|
-
|
174
|
+
- **Bug Fixes**
|
175
|
+
|
176
|
+
- Default policies set on Client instance do not get applied [[#74](https://github.com/aerospike/aerospike-client-ruby/issues/74)]
|
177
|
+
|
178
|
+
- **Updates**
|
179
|
+
- _BREAKING CHANGE_: Change default for send_key write policy to false [[#73](https://github.com/aerospike/aerospike-client-ruby/issues/73)]
|
180
|
+
- Support truncate info command argument "lut=now" for servers that require it. [AER-5955]
|
160
181
|
|
161
182
|
## [2.8.0] - 2018-08-06
|
162
183
|
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
184
|
+
- **New Features**
|
185
|
+
|
186
|
+
- Support latest CDT List/Map server-side operations: [[#69](https://github.com/aerospike/aerospike-client-ruby/pull/69)]
|
187
|
+
- Operations on Ordered Lists & Bounded Lists via new List Policy. (Requires server version v3.16.0 or later.)
|
188
|
+
- Option to invert selection criteria for certain List/Map get/remove operations. (Requires server version v3.16.0 or later.)
|
189
|
+
- List/Map index/rank relative get/remove operations. (Requires server version v4.3.0 or later.)
|
190
|
+
- Partial list/map updates using PARTIAL / NO_FAIL write flags. (Requires server version v4.3.0 or later.)
|
191
|
+
- Benchmarks: Output total TPS metrics at end of run [[#71](https://github.com/aerospike/aerospike-client-ruby/pull/71)]
|
192
|
+
|
193
|
+
- **Bug Fixes**
|
170
194
|
|
171
|
-
|
172
|
-
* Check connection status of sockets retrieved from connection pool [[#72](https://github.com/aerospike/aerospike-client-ruby/pull/72)]
|
195
|
+
- Check connection status of sockets retrieved from connection pool [[#72](https://github.com/aerospike/aerospike-client-ruby/pull/72)]
|
173
196
|
|
174
|
-
|
175
|
-
|
197
|
+
- **Updates**
|
198
|
+
- Add JRuby back to CI test matrix [[#70](https://github.com/aerospike/aerospike-client-ruby/pull/70)]
|
176
199
|
|
177
200
|
## [2.7.0] - 2018-04-12
|
178
201
|
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
202
|
+
- **New Features**
|
203
|
+
- Batch Index protocol support. Thanks to [@deenbandhu-agarwal](https://github.com/deenbandhu-agarwal)! [[#61](https://github.com/aerospike/aerospike-client-ruby/pull/61)]
|
204
|
+
- Memory optimization: Avoid easy allocations. Thanks to [@wallin](https://github.com/wallin)! [[#62](https://github.com/aerospike/aerospike-client-ruby/pull/62)]
|
205
|
+
- New node removal strategy. Thanks to [@wallin](https://github.com/wallin)! [[#63](https://github.com/aerospike/aerospike-client-ruby/pull/63)]
|
206
|
+
- Support for IPv6. Requires Aerospike Enterprise Edition v3.10 or later. Thanks to [@wallin](https://github.com/wallin)! [[#65](https://github.com/aerospike/aerospike-client-ruby/pull/65)]
|
184
207
|
|
185
208
|
## [2.6.0] - 2018-03-27
|
186
209
|
|
187
|
-
|
188
|
-
* Support for peers protocol for cluster discovery. Requires Aerospike server version 3.10 or later. Thanks to [@wallin](https://github.com/wallin) of [castle.io](https://castle.io/)! [[#59](https://github.com/aerospike/aerospike-client-ruby/pull/59)]
|
189
|
-
* TLS encryption support for client <-> server connections. Requires Aerospike Enterprise Edition version 3.11 or later. Thanks to [@wallin](https://github.com/wallin) of [castle.io](https://castle.io/)! [[#59](https://github.com/aerospike/aerospike-client-ruby/pull/59)]
|
210
|
+
- **New Features**
|
190
211
|
|
191
|
-
|
192
|
-
|
212
|
+
- Support for peers protocol for cluster discovery. Requires Aerospike server version 3.10 or later. Thanks to [@wallin](https://github.com/wallin) of [castle.io](https://castle.io/)! [[#59](https://github.com/aerospike/aerospike-client-ruby/pull/59)]
|
213
|
+
- TLS encryption support for client <-> server connections. Requires Aerospike Enterprise Edition version 3.11 or later. Thanks to [@wallin](https://github.com/wallin) of [castle.io](https://castle.io/)! [[#59](https://github.com/aerospike/aerospike-client-ruby/pull/59)]
|
193
214
|
|
194
|
-
|
195
|
-
|
215
|
+
- **Bug Fixes**
|
216
|
+
|
217
|
+
- Fix min./max. boundary check for Integer bin values and improve performance. Thanks to [@wallin](https://github.com/wallin) of [castle.io](https://castle.io/)! [[#60](https://github.com/aerospike/aerospike-client-ruby/pull/60)]
|
218
|
+
|
219
|
+
- **Updates**
|
220
|
+
- Update minimum required Ruby version to v2.3.
|
196
221
|
|
197
222
|
## [2.5.1] - 2018-01-25
|
198
223
|
|
199
|
-
|
200
|
-
* Some secondary index queries fail with parameter error on Aerospike Server v3.15.1.x [#57](https://github.com/aerospike/aerospike-client-ruby/issues/57)
|
224
|
+
- **Bug Fixes**
|
201
225
|
|
202
|
-
|
203
|
-
|
204
|
-
|
226
|
+
- Some secondary index queries fail with parameter error on Aerospike Server v3.15.1.x [#57](https://github.com/aerospike/aerospike-client-ruby/issues/57)
|
227
|
+
|
228
|
+
- **Updates**
|
229
|
+
- Added Ruby 2.5 to test matrix
|
230
|
+
- Updated documentation for Client#truncate command [CLIENT-985]
|
205
231
|
|
206
232
|
## [2.5.0] - 2017-10-10
|
207
233
|
|
208
|
-
|
209
|
-
|
210
|
-
|
234
|
+
- **New Features**
|
235
|
+
|
236
|
+
- Support nobins flag on query operations
|
237
|
+
- Support CDT List Increment operation. Requires Aerospike server version 3.15 or later.
|
211
238
|
|
212
|
-
|
213
|
-
|
214
|
-
|
239
|
+
- **Updates**
|
240
|
+
- The deprecated Large Data Types(LDT) feature has been removed.
|
241
|
+
- Ruby 2.1 has been removed from the client's test matrix as [official support for Ruby 2.1 has ended in Apr 2017](https://www.ruby-lang.org/en/news/2017/04/01/support-of-ruby-2-1-has-ended/). Nothing has changed in the client that would break compatibility with Ruby 2.1 yet. But compatibility is not guaranteed for future client releases.
|
215
242
|
|
216
243
|
## [2.4.0] - 2017-04-06
|
217
244
|
|
218
|
-
|
219
|
-
* Support ns/set truncate command [#47](https://github.com/aerospike/aerospike-client-ruby/issues/47)
|
220
|
-
* Support configurable scan socket write timeout [#46](https://github.com/aerospike/aerospike-client-ruby/issues/46)
|
245
|
+
- **New Features**
|
221
246
|
|
222
|
-
|
223
|
-
|
247
|
+
- Support ns/set truncate command [#47](https://github.com/aerospike/aerospike-client-ruby/issues/47)
|
248
|
+
- Support configurable scan socket write timeout [#46](https://github.com/aerospike/aerospike-client-ruby/issues/46)
|
224
249
|
|
225
|
-
|
226
|
-
|
250
|
+
- **Bug Fixes**
|
251
|
+
|
252
|
+
- Fix "Digest::Base cannot be directly inherited in Ruby" [#45](https://github.com/aerospike/aerospike-client-ruby/issues/45)
|
253
|
+
|
254
|
+
- **Updates**
|
255
|
+
- Ruby 2.0 has been removed from the client's test matrix as [official support for Ruby 2.0 has ended in Feb 2016](https://www.ruby-lang.org/en/news/2016/02/24/support-plan-of-ruby-2-0-0-and-2-1/). Nothing has changed in the client that would break compatibility with Ruby 2.0 yet. But compatibility is not guaranteed for future client releases. [#52](https://github.com/aerospike/aerospike-client-ruby/pull/52)
|
227
256
|
|
228
257
|
## [2.3.0] - 2017-01-04
|
229
258
|
|
230
|
-
|
231
|
-
* Fix BytesValue used as record key. [#42](https://github.com/aerospike/aerospike-client-ruby/issues/42)
|
259
|
+
- **Bug Fixes**
|
232
260
|
|
233
|
-
|
234
|
-
|
261
|
+
- Fix BytesValue used as record key. [#42](https://github.com/aerospike/aerospike-client-ruby/issues/42)
|
262
|
+
|
263
|
+
- **Changes**
|
264
|
+
- Deprecate unsupport key types - only integer, string and byte keys are supported. [#43](https://github.com/aerospike/aerospike-client-ruby/issues/43)
|
235
265
|
|
236
266
|
## [2.2.1] - 2016-11-14
|
237
267
|
|
238
|
-
|
239
|
-
|
268
|
+
- **New Features**
|
269
|
+
|
270
|
+
- Added constants `Aerospike::TTL::*` for "special" TTL values, incl. Aerospike::TTL::DONT_UPDATE (requires Aerospike Server v3.10.1 or later)
|
240
271
|
|
241
|
-
|
242
|
-
|
272
|
+
- **Bug Fixes**
|
273
|
+
- Fix "Add node failed: wrong number of arguments". [#41](https://github.com/aerospike/aerospike-client-ruby/issues/41)
|
243
274
|
|
244
275
|
## [2.2.0] - 2016-09-20
|
245
276
|
|
246
|
-
|
247
|
-
|
277
|
+
- **New Features**
|
278
|
+
|
279
|
+
- Support for durable delete write policy [CLIENT-768]; requires Aerospike
|
248
280
|
Server Enterprise Edition v3.10 or later.
|
249
|
-
|
281
|
+
- Support Cluster Name verification [CLIENT-776]; requires Aerospike Server v3.10 or later.
|
282
|
+
|
283
|
+
- **Bug Fixes**
|
250
284
|
|
251
|
-
|
252
|
-
* Fix error handling in node refresh during cluster tend.
|
285
|
+
- Fix error handling in node refresh during cluster tend.
|
253
286
|
|
254
|
-
|
255
|
-
|
287
|
+
- **Improvements**
|
288
|
+
|
289
|
+
- Optionally return multiple results from read operations on same record bin.
|
256
290
|
[#39](https://github.com/aerospike/aerospike-client-ruby/issues/39) Thanks
|
257
291
|
to [@zingoba](https://github.com/zingoba).
|
258
292
|
|
259
|
-
|
260
|
-
|
261
|
-
|
293
|
+
- **Documentation**
|
294
|
+
- Added note about potential issues with usage in Ruby on Rails with Phusion Passenger.
|
295
|
+
- Amend/clean up documentation of client policies.
|
262
296
|
|
263
297
|
## [2.1.1] - 2016-08-16
|
264
298
|
|
265
|
-
|
266
|
-
|
299
|
+
- **Bug Fixes**
|
300
|
+
|
301
|
+
- Fix incorrect expiration times on records fetched via batch_get or query operations. [#38](https://github.com/aerospike/aerospike-client-ruby/issues/38)
|
267
302
|
|
268
|
-
|
269
|
-
|
270
|
-
|
303
|
+
- **Improvements**
|
304
|
+
- Add support for two new server error codes (23 & 24) introduced in Aerospike Server v3.9.1.
|
305
|
+
- Records returned by batch_get operation should include the full key incl. the user key part.
|
271
306
|
|
272
307
|
## [2.1.0] - 2016-07-19
|
273
308
|
|
274
|
-
|
275
|
-
* Fix a typo in the `max_retries` policy parameter name. [PR #37](https://github.com/aerospike/aerospike-client-ruby/pull/37) Thanks to [@murphyslaw](https://github.com/murphyslaw)!
|
276
|
-
* Fix license identifier in gemspec.
|
309
|
+
- **Fixes**
|
277
310
|
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
311
|
+
- Fix a typo in the `max_retries` policy parameter name. [PR #37](https://github.com/aerospike/aerospike-client-ruby/pull/37) Thanks to [@murphyslaw](https://github.com/murphyslaw)!
|
312
|
+
- Fix license identifier in gemspec.
|
313
|
+
|
314
|
+
- **Improvements**
|
315
|
+
- Support for queries on Lists and Maps (keys & values)
|
316
|
+
- Support for creating indexes on Lists and Maps [CLIENT-685]
|
317
|
+
- Support GeoJSON values in Lists and Maps
|
282
318
|
|
283
319
|
## [2.0.0] - 2016-05-27
|
284
320
|
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
321
|
+
- **Breaking Changes** - Please refer to detailed list of [API changes](https://www.aerospike.com/docs/client/ruby/usage/incompatible.html#version-2-0-0) for further details.
|
322
|
+
|
323
|
+
- Incompatible integer key digests: digests for integer keys computed by v2 and v1 are different; the Aerospike server uses the key digest to retrieve records. This will impact your ability to read records with integer keys that were created by a v1 client version.
|
324
|
+
- Backward incompatible changes to the `Aerospike::Client.new` initializer.
|
325
|
+
- The `Aerospike::Client.new_many` initializer has been removed; use `Aerospike::Client.new` instead.
|
326
|
+
- Drop support for Ruby 1.9.3; requires Ruby 2.0 or later.
|
290
327
|
|
291
|
-
|
292
|
-
* Add support for List and Map operations on List/Map Complex Data Types (CDT); requires Aerospike Server version 3.9 or later. [CLIENT-559]
|
293
|
-
* Read Aerospike server address from AEROSPIKE_HOSTS env variable if not specified explicity in client constructor.
|
294
|
-
* Add 2.3.1 to supported Ruby versions on Travis-CI.
|
328
|
+
- **Improvements**
|
295
329
|
|
296
|
-
|
297
|
-
|
298
|
-
|
330
|
+
- Add support for List and Map operations on List/Map Complex Data Types (CDT); requires Aerospike Server version 3.9 or later. [CLIENT-559]
|
331
|
+
- Read Aerospike server address from AEROSPIKE_HOSTS env variable if not specified explicity in client constructor.
|
332
|
+
- Add 2.3.1 to supported Ruby versions on Travis-CI.
|
333
|
+
|
334
|
+
- **Fixes**
|
335
|
+
- Fix digest creation for integer keys. [PR #34](https://github.com/aerospike/aerospike-client-ruby/pull/34). Thanks to [@murphyslaw](https://github.com/murphyslaw)!
|
336
|
+
- Prevent "value must be enumerable" error when client cannot connect to cluster. [#35](https://github.com/aerospike/aerospike-client-ruby/issues/35). Thanks to [@rohanthewiz](https://github.com/rohanthewiz)!
|
299
337
|
|
300
338
|
## [1.0.12] - 2016-02-11
|
301
339
|
|
302
|
-
|
340
|
+
- **Fixes**:
|
303
341
|
|
304
|
-
|
342
|
+
- Fixed syntax error in Client when raising exception for invalid bin key;
|
305
343
|
thanks to [Ole Riesenberg](https://github.com/oleriesenberg) for the fix.
|
306
344
|
[aerospike/aerospike-client-ruby#31]
|
307
|
-
|
345
|
+
- Use UTF-8 as default encoding when writing/reading Strings from record
|
308
346
|
bins; thanks to [fs-wu](https://github.com/fs-wu) for finding the issue and
|
309
347
|
reporting it. [aerospike/aerospike-client-ruby#33]
|
310
348
|
|
311
349
|
## [1.0.11] - 2015-12-04
|
312
350
|
|
313
|
-
|
351
|
+
Major feature and bug fix release.
|
314
352
|
|
315
|
-
|
353
|
+
- **Fixes**:
|
316
354
|
|
317
|
-
|
355
|
+
- Fix `ClientPolicy` to actually accept `fail_if_not_connected` parameter from constructor opts. PR #29, thanks to [Nick Recobra](https://github.com/oruen)
|
318
356
|
|
319
|
-
|
357
|
+
- Fix record initialization issue. PR #28, thanks to [jzhua](https://github.com/jzhua)
|
320
358
|
|
321
|
-
|
359
|
+
- Consume the rest of the stream when scan/query is finished.
|
322
360
|
|
323
|
-
|
361
|
+
- **Improvements**:
|
324
362
|
|
325
|
-
|
326
|
-
|
363
|
+
- Support for double precision floating point data type in record bins.
|
364
|
+
Requires server version 3.6.0 or later. [CLIENT-599]
|
327
365
|
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
366
|
+
- Support for geospatial data in record bins using GeoJSON format; support
|
367
|
+
for querying geospatial indexes using points-within-region and
|
368
|
+
region-contains-point filters. Requires server version 3.7.0 or later.
|
369
|
+
[CLIENT-594]
|
332
370
|
|
333
|
-
|
334
|
-
|
371
|
+
- Tend interval is now configurable via the client policy. Default is 1
|
372
|
+
second as before.
|
335
373
|
|
336
|
-
|
374
|
+
- Only logs tend messages when the number of cluster nodes have changed.
|
337
375
|
|
338
|
-
|
376
|
+
- Scan and Query termination has been fixed.
|
339
377
|
|
340
378
|
## [1.0.10] - 2015-09-22
|
341
379
|
|
342
|
-
|
380
|
+
Major fix release.
|
343
381
|
|
344
|
-
|
382
|
+
- **Fixes**:
|
345
383
|
|
346
|
-
|
384
|
+
- Fixes `find_node_in_partition_map` logic.
|
347
385
|
|
348
|
-
|
386
|
+
- Fixes `Node.Refresh` logic.
|
349
387
|
|
350
|
-
|
388
|
+
- Fixes an issue with dead connections that would cause an infinite loop.
|
351
389
|
|
352
390
|
## [1.0.9] - 2015-08-11
|
353
391
|
|
354
|
-
|
392
|
+
Minor fix release.
|
355
393
|
|
356
|
-
|
394
|
+
- **Fixes**:
|
357
395
|
|
358
|
-
|
396
|
+
- Sends the original key value to the server for all relevant commands, including `operate` and `execute_udf`
|
359
397
|
|
360
398
|
## [1.0.8] - 2015-07-23
|
361
399
|
|
362
|
-
|
400
|
+
Minor fix release.
|
363
401
|
|
364
|
-
|
402
|
+
- **Improvements**:
|
365
403
|
|
366
|
-
|
404
|
+
- Adds 'Filter.to_s'. Thanks to [Ángel M](https://github.com/Angelmmiguel)
|
367
405
|
|
368
|
-
|
406
|
+
- **Fixes**:
|
369
407
|
|
370
|
-
|
408
|
+
- Fixes an issue in write policy that would use an undefined variable if `:send_key` isn't `nil`.
|
371
409
|
|
372
|
-
|
410
|
+
- Fixes an issue in cluster.closed logic.
|
373
411
|
|
374
|
-
|
412
|
+
- Fixes an issue with including the `statement.rb` in the manifest. Thanks to [Ángel M](https://github.com/Angelmmiguel)
|
375
413
|
|
376
414
|
## [1.0.7] - 2015-05-15
|
377
415
|
|
378
|
-
|
416
|
+
Minor fixes.
|
379
417
|
|
380
|
-
|
418
|
+
NOTICE: All LDTs on server other than LLIST have been deprecated, and will be removed in the future. As Such, all API regarding those features are considered deprecated and will be removed in tandem.
|
381
419
|
|
382
|
-
|
420
|
+
- **Improvements**:
|
383
421
|
|
384
|
-
|
422
|
+
- Removed workaround in `BatchGet`. Bins are filtered on server now.
|
385
423
|
|
386
|
-
|
424
|
+
- Added New Error Codes. Fixes Issues #17 and #18
|
387
425
|
|
388
|
-
|
426
|
+
- Node validator won't lookup hostsif an IP is passed as a seed to it.
|
389
427
|
|
390
|
-
|
428
|
+
- ** Other Changes **
|
391
429
|
|
392
|
-
|
430
|
+
- Removed deprecated `ReplaceRoles()` method.
|
393
431
|
|
394
|
-
|
432
|
+
- Removed deprecated `SetCapacity()` and `GetCapacity()` methods for LDTs.
|
395
433
|
|
396
434
|
## [1.0.6] - 2015-04-02
|
397
435
|
|
398
|
-
|
436
|
+
Minor fixes.
|
399
437
|
|
400
|
-
|
438
|
+
- **New Features**:
|
401
439
|
|
402
|
-
|
440
|
+
- Fixed running a stream query without parameters to the function.
|
403
441
|
|
404
442
|
## [1.0.5] - 2015-03-25
|
405
443
|
|
406
|
-
|
444
|
+
Minor improvements.
|
407
445
|
|
408
|
-
|
446
|
+
- **New Features**:
|
409
447
|
|
410
|
-
|
448
|
+
- Added `:execute_udf_on_query` method to `Aerospike::Client`
|
411
449
|
|
412
450
|
## [1.0.4] - 2015-03-24
|
413
451
|
|
414
|
-
|
452
|
+
Hot fix.
|
415
453
|
|
416
|
-
|
454
|
+
- **Fixes**:
|
417
455
|
|
418
|
-
|
456
|
+
- Close a socket if connection raises an exception to avoid leaking the file descriptor.
|
419
457
|
|
420
458
|
## [1.0.3] - 2015-03-24
|
421
459
|
|
422
|
-
|
423
|
-
|
424
|
-
* **New Features**:
|
460
|
+
Minor fixes and improvements.
|
425
461
|
|
426
|
-
|
462
|
+
- **New Features**:
|
427
463
|
|
428
|
-
|
464
|
+
- Symbols are now accepted as key values. Keep in mind that symbols are converted to string automatically, and type information is lost.
|
429
465
|
|
430
|
-
|
466
|
+
- **Fixes**:
|
431
467
|
|
468
|
+
- Wait for a good connection on `socket.connect_nonblock` to prevent infinite loops on read/write operations.
|
432
469
|
|
433
470
|
## [1.0.2] - 2015-03-14
|
434
471
|
|
435
|
-
|
472
|
+
Minor improvements.
|
436
473
|
|
437
|
-
|
474
|
+
- **New Features**:
|
438
475
|
|
439
|
-
|
476
|
+
- Added `:new_many` method to `Aerospike::Client`
|
440
477
|
|
441
478
|
## [1.0.1] - 2015-01-28
|
442
479
|
|
443
|
-
|
480
|
+
Hot fix.
|
444
481
|
|
445
|
-
|
482
|
+
- **Fixes**:
|
446
483
|
|
447
|
-
|
484
|
+
- Added `bcrypt` to the gem dependencies.
|
448
485
|
|
449
486
|
## [1.0.0] - 2015-01-26
|
450
487
|
|
451
|
-
|
488
|
+
Major release. With this release, Ruby client graduates to version 1.
|
452
489
|
|
453
|
-
|
490
|
+
- **Breaking Changes**:
|
454
491
|
|
455
|
-
|
456
|
-
|
492
|
+
- All `policy` initialize signatures have changed. Using policies was not documented, so it shouldn't affect most code. It will however, break any code initializing policies.
|
493
|
+
- Removed `Record.dups` and `GenerationPolicy::DUPLICATE`
|
457
494
|
|
458
|
-
|
495
|
+
- **New Features**:
|
459
496
|
|
460
|
-
|
497
|
+
- Added Security Features: Please consult [Security Docs](https://www.aerospike.com/docs/guide/security.html) on Aerospike website.
|
461
498
|
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
499
|
+
- `ClientPolicy.User`, `ClientPolicy.Password`
|
500
|
+
- `Client.CreateUser()`, `Client.DropUser()`, `Client.ChangePassword()`
|
501
|
+
- `Client.GrantRoles()`, `Client.RevokeRoles()`, `Client.ReplaceRoles()`
|
502
|
+
- `Client.QueryUser()`, `Client.QueryUsers`
|
466
503
|
|
467
|
-
|
504
|
+
- **Fixes**:
|
468
505
|
|
469
|
-
|
506
|
+
- fixed size returned from `BytesValue.write`
|
470
507
|
|
471
508
|
## [0.1.6] - 2014-12-28
|
472
509
|
|
473
|
-
|
510
|
+
Minor features added, minor fixes and improvements.
|
474
511
|
|
475
|
-
|
512
|
+
- **New Features**:
|
476
513
|
|
477
|
-
|
478
|
-
|
514
|
+
- Added `Policy.consistency_level`
|
515
|
+
- Added `WritePolicy.commit_level`
|
479
516
|
|
480
|
-
|
517
|
+
- **Fixes**
|
481
518
|
|
482
|
-
|
483
|
-
|
519
|
+
- Fixed setting timeout on connection
|
520
|
+
- Fixed exception handling typo for Connection#write
|
484
521
|
|
485
522
|
## [0.1.5] - 2014-12-08
|
486
523
|
|
487
|
-
|
524
|
+
Major features added, minor fixes and improvements.
|
488
525
|
|
489
|
-
|
526
|
+
- **New Features**:
|
490
527
|
|
491
|
-
|
492
|
-
|
528
|
+
- Added `Client.scan_node`, `Client.scan_all`
|
529
|
+
- Added `Client.query`
|
493
530
|
|
494
|
-
|
531
|
+
- **Fixes**
|
495
532
|
|
496
|
-
|
533
|
+
- Fixed getting back results only for specified bin names.
|
497
534
|
|
498
535
|
## [0.1.3] - 2014-10-27
|
499
536
|
|
500
|
-
|
537
|
+
Minor fix.
|
501
538
|
|
502
|
-
|
539
|
+
- **Changes**:
|
503
540
|
|
504
|
-
|
541
|
+
- Fixed LDT bin and module name packing.
|
505
542
|
|
506
543
|
## [0.1.2] - 2014-10-25
|
507
544
|
|
508
|
-
|
545
|
+
Minor fix.
|
509
546
|
|
510
|
-
|
547
|
+
- **Changes**:
|
511
548
|
|
512
|
-
|
549
|
+
- Fixed String unpacking for single byte strings.
|
513
550
|
|
514
551
|
## [0.1.1] - 2014-10-25
|
515
552
|
|
516
|
-
|
553
|
+
Minor fixes.
|
517
554
|
|
518
|
-
|
555
|
+
- **Changes**:
|
519
556
|
|
520
|
-
|
521
|
-
|
557
|
+
- Fixed String packing header in Hash and Array.
|
558
|
+
- #find on LDTs returns `nil` instad of raising an exception if the item is not found.
|
522
559
|
|
523
560
|
## [0.1.0] - 2014-10-14
|
524
561
|
|
525
|
-
|
562
|
+
- Initial Release.
|