aerospike 2.9.0 → 2.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4a6204e2eedbfcbd9a755abdc89da26d978ec5cddbc401b9085863e953c9a5a
4
- data.tar.gz: 9ef1ad5e358a98a30da46cf6aded8bc8958f62e16f239523f313a7c2ddd169b2
3
+ metadata.gz: 5ec864bf7ffd197e9badf516904193eb4e6260ac257335facc8e3df058307384
4
+ data.tar.gz: '09fe60ac38789318a8739439d99490810129056614a479cafcecce01803c1bff'
5
5
  SHA512:
6
- metadata.gz: 6ca26471e04a8999b081699e2b68f51eaa00e28cc1e8e8fc4d7e0f1fa2830de9dbb5725b888420cab85dbd5f34af2dae675b81963a9b7c88320e3393e2b0c1a1
7
- data.tar.gz: c854595481004116f1c0fd90600dcf0ba94dfe9b371a8a310a21afae601dd491ecd960658cfe7fe3f08859259af421b19453aeec2cfda68484af328f7c98657c
6
+ metadata.gz: 0cf87d41d1b4b04121bbf8589974bfa931dea4ec96f17bdf94db737797afb60dc05932f6f56eed0b8f138bb6684a45eb4974c489e878ed5a949209734bf2dae7
7
+ data.tar.gz: 65bccc5b55db802415541ae4b5307020477344bb2d771d7cc84b9554192fa97f76874c7538d2c62dbd0025780d91bd91c8dfc1e0143c2bd3753f092d1c391885
@@ -4,6 +4,16 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [2.9.1] - 2019-04-03
8
+
9
+ * **Bug Fixes**
10
+ * Query fails if one or more cluster nodes do not have records in the set [[#77](https://github.com/aerospike/aerospike-client-ruby/issue/77)]
11
+
12
+ * **Updates**
13
+ * Change admin message version to 2 (from 0)
14
+ * Remove unused BIN_EXISTS_ERROR (6) and BIN_NOT_FOUND (17) error codes
15
+ * Tests: Support setting user/password when running specs
16
+
7
17
  ## [2.9.0] - 2018-11-09
8
18
 
9
19
  * **New Features**
@@ -140,7 +150,7 @@ All notable changes to this project will be documented in this file.
140
150
 
141
151
  ## [2.0.0] - 2016-05-27
142
152
 
143
- * **Breaking Changes** - Please refer to detailed list of [API changes](docs/api-changes.md#v2.0.0) for further details.
153
+ * **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.
144
154
  * 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.
145
155
  * Backward incompatible changes to the `Aerospike::Client.new` initializer.
146
156
  * The `Aerospike::Client.new_many` initializer has been removed; use `Aerospike::Client.new` instead.
@@ -25,7 +25,6 @@ module Aerospike
25
25
  CHANGE_PASSWORD = 4
26
26
  GRANT_ROLES = 5
27
27
  REVOKE_ROLES = 6
28
- REPLACE_ROLES = 7
29
28
  #CREATE_ROLE = 8
30
29
  QUERY_USERS = 9
31
30
  #QUERY_ROLES = 10
@@ -39,7 +38,7 @@ module Aerospike
39
38
  #PRIVILEGES = 11
40
39
 
41
40
  # Misc
42
- MSG_VERSION = 0
41
+ MSG_VERSION = 2
43
42
  MSG_TYPE = 2
44
43
 
45
44
  HEADER_SIZE = 24
@@ -36,15 +36,14 @@ module Aerospike
36
36
 
37
37
  # The only valid server return codes are "ok" and "not found".
38
38
  # If other return codes are received, then abort the batch.
39
- if result_code != 0
40
- # if there is no recordset defined, it means this is an Execute UDF On Query command
41
- # return successfully
42
- if (@recordset == nil) && (result_code == Aerospike::ResultCode::KEY_NOT_FOUND_ERROR)
43
- # consume the rest of the input buffer from the socket
44
- read_bytes(receive_size - @data_offset) if @data_offset < receive_size
45
-
46
- return nil
47
- end
39
+ case result_code
40
+ when Aerospike::ResultCode::OK
41
+ # noop
42
+ when Aerospike::ResultCode::KEY_NOT_FOUND_ERROR
43
+ # consume the rest of the input buffer from the socket
44
+ read_bytes(receive_size - @data_offset) if @data_offset < receive_size
45
+ return nil
46
+ else
48
47
  raise Aerospike::Exceptions::Aerospike.new(result_code)
49
48
  end
50
49
 
@@ -60,10 +60,6 @@ module Aerospike
60
60
  # exists.
61
61
  KEY_EXISTS_ERROR = 5
62
62
 
63
- # On create-only (write unique) operations on a bin that already
64
- # exists.
65
- BIN_EXISTS_ERROR = 6
66
-
67
63
  # Expected cluster ID was not received.
68
64
  CLUSTER_KEY_MISMATCH = 7
69
65
 
@@ -95,9 +91,6 @@ module Aerospike
95
91
  # Unsupported Server Feature (e.g. Scan + UDF)
96
92
  UNSUPPORTED_FEATURE = 16
97
93
 
98
- # Specified bin name does not exist in record.
99
- BIN_NOT_FOUND = 17
100
-
101
94
  # Specified bin name does not exist in record.
102
95
  DEVICE_OVERLOAD = 18
103
96
 
@@ -248,9 +241,6 @@ module Aerospike
248
241
  when KEY_EXISTS_ERROR
249
242
  "Key already exists"
250
243
 
251
- when BIN_EXISTS_ERROR
252
- "Bin already exists"
253
-
254
244
  when CLUSTER_KEY_MISMATCH
255
245
  "Cluster key mismatch"
256
246
 
@@ -281,9 +271,6 @@ module Aerospike
281
271
  when UNSUPPORTED_FEATURE
282
272
  "Unsupported Server Feature"
283
273
 
284
- when BIN_NOT_FOUND
285
- "Bin not found"
286
-
287
274
  when DEVICE_OVERLOAD
288
275
  "Device overload"
289
276
 
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Aerospike
3
- VERSION = "2.9.0"
3
+ VERSION = "2.9.1"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aerospike
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.0
4
+ version: 2.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Khosrow Afroozeh
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-11-09 00:00:00.000000000 Z
12
+ date: 2019-04-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: msgpack
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  version: '0'
190
190
  requirements: []
191
191
  rubyforge_project:
192
- rubygems_version: 2.7.3
192
+ rubygems_version: 2.7.9
193
193
  signing_key:
194
194
  specification_version: 4
195
195
  summary: An Aerospike driver for Ruby.