aerospike 2.18.0 → 2.19.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 +7 -1
- data/lib/aerospike/cluster.rb +9 -9
- data/lib/aerospike/result_code.rb +6 -0
- data/lib/aerospike/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85cdd4e1a2cbb3572cf4c84715a6a43e768e5b8b4b3adc583d45dd41280b9c31
|
4
|
+
data.tar.gz: faa4ae8908d9fca3798b59053a0753bf9df740ff006d6bdccaf39b45fd4b11d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1137414c6f8d465650d88d3169710f4c860ce1938acc24998cbdcd33abed486b238f4ce8a3aee92158a610df99db756311d5aba6617bc464db81268e41529cf6
|
7
|
+
data.tar.gz: 7f9e276d0d4aab9843312cb3054305a82b4b59691473e869ad1fcefb1eaacb6ee19c46c2bdacd0cc081650b474a426a0dea845c1e678e23967b66ab34294a5ff
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,12 @@
|
|
2
2
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
|
5
|
+
## [2.19.0] - 2020-02-09
|
6
|
+
|
7
|
+
* **Improvements**
|
8
|
+
* 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)]
|
9
|
+
* Adds `ResultCode::LOST_CONFLICT`
|
10
|
+
|
5
11
|
## [2.18.0] - 2020-12-01
|
6
12
|
|
7
13
|
* **Bug Fixes**
|
@@ -63,7 +69,7 @@ All notable changes to this project will be documented in this file.
|
|
63
69
|
|
64
70
|
* **Improvements**
|
65
71
|
* Optimize serialization for nested structures. Thanks to [@Kacper Madej](https://github.com/madejejej)! [[#94](https://github.com/aerospike/aerospike-client-ruby/pull/94)]
|
66
|
-
* Remove `Thread#abort_on_exception` from `batch_index_command`. Thanks to [@Kacper Madej](https://github.com/madejejej)! [[#
|
72
|
+
* 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)]
|
67
73
|
* Does not allow values other than Integer, Float, String, Symbol and nil to be used as keys in Maps.
|
68
74
|
|
69
75
|
* **Bug Fixes**
|
data/lib/aerospike/cluster.rb
CHANGED
@@ -18,7 +18,6 @@
|
|
18
18
|
# the License.
|
19
19
|
|
20
20
|
require 'set'
|
21
|
-
require 'timeout'
|
22
21
|
|
23
22
|
require 'aerospike/atomic/atomic'
|
24
23
|
|
@@ -428,6 +427,7 @@ module Aerospike
|
|
428
427
|
|
429
428
|
def wait_till_stablized
|
430
429
|
count = -1
|
430
|
+
done = false
|
431
431
|
|
432
432
|
# will run until the cluster is stablized
|
433
433
|
thr = Thread.new do
|
@@ -438,20 +438,20 @@ module Aerospike
|
|
438
438
|
# If not, assume cluster has stabilized and return.
|
439
439
|
break if count == nodes.length
|
440
440
|
|
441
|
-
|
441
|
+
# Break if timed out
|
442
|
+
break if done
|
443
|
+
|
444
|
+
sleep(0.001) # sleep for a milisecond
|
442
445
|
|
443
446
|
count = nodes.length
|
444
447
|
end
|
445
448
|
end
|
446
449
|
|
447
450
|
# wait for the thread to finish or timeout
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
rescue Timeout::Error
|
453
|
-
thr.kill if thr.alive?
|
454
|
-
end
|
451
|
+
thr.join(@connection_timeout)
|
452
|
+
done = true
|
453
|
+
sleep(0.001)
|
454
|
+
thr.kill if thr.alive?
|
455
455
|
|
456
456
|
@closed.value = false if @cluster_nodes.length > 0
|
457
457
|
end
|
@@ -129,6 +129,9 @@ module Aerospike
|
|
129
129
|
# The transaction was not performed because the predexp was false.
|
130
130
|
FILTERED_OUT = 27
|
131
131
|
|
132
|
+
# Write command loses conflict to XDR.
|
133
|
+
LOST_CONFLICT = 28
|
134
|
+
|
132
135
|
# There are no more records left for query.
|
133
136
|
QUERY_END = 50
|
134
137
|
|
@@ -364,6 +367,9 @@ module Aerospike
|
|
364
367
|
when FILTERED_OUT
|
365
368
|
"The transaction was not performed because the predexp was false."
|
366
369
|
|
370
|
+
when LOST_CONFLICT
|
371
|
+
"Write command loses conflict to XDR."
|
372
|
+
|
367
373
|
when QUERY_END
|
368
374
|
"Query end"
|
369
375
|
|
data/lib/aerospike/version.rb
CHANGED
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.
|
4
|
+
version: 2.19.0
|
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:
|
12
|
+
date: 2021-02-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: msgpack
|