sorceror_poseidon_cluster 0.4.0 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/poseidon/consumer_group.rb +2 -1
- data/sorceror_poseidon_cluster.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a5ec20edb56fa895f41ba0a2ccf0b9b83e45ef75
|
|
4
|
+
data.tar.gz: c1109431ad4266a4c4bf00c1630e8c77c569f0f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fe9162e06b53f5c6916931c7b0e920442c5357a9f21cad7a073f4a68a69263028a5d40de92bd64c9c2cb4d7255fce289384446be44554ca6cc8b6d349b197160
|
|
7
|
+
data.tar.gz: 14cec598bfa3859b8cdb32880af4528eeab9f01be127364284996736cabe52d8df80604787a1c60a00fa2a61676605072292935707b1b4c2ab52c53cb341333d
|
data/.gitignore
CHANGED
|
@@ -105,6 +105,7 @@ class Poseidon::ConsumerGroup
|
|
|
105
105
|
@consumers = []
|
|
106
106
|
@pool = ::Poseidon::BrokerPool.new(id, brokers, options[:socket_timeout_ms])
|
|
107
107
|
@mutex = Mutex.new
|
|
108
|
+
@claim_timeout = options.delete(:claim_timeout) || DEFAULT_CLAIM_TIMEOUT
|
|
108
109
|
|
|
109
110
|
register! unless options[:register] == false
|
|
110
111
|
end
|
|
@@ -436,7 +437,7 @@ class Poseidon::ConsumerGroup
|
|
|
436
437
|
# @raise [Timeout::Error]
|
|
437
438
|
def claim!(partition)
|
|
438
439
|
path = claim_path(partition)
|
|
439
|
-
Timeout.timeout
|
|
440
|
+
Timeout.timeout @claim_timeout do
|
|
440
441
|
while zk.create(path, id, ephemeral: true, ignore: :node_exists).nil?
|
|
441
442
|
return if @pending
|
|
442
443
|
sleep(0.1)
|
|
@@ -5,7 +5,7 @@ Gem::Specification.new do |s|
|
|
|
5
5
|
s.name = File.basename(__FILE__, '.gemspec')
|
|
6
6
|
s.summary = "Poseidon cluster extensions"
|
|
7
7
|
s.description = "Cluster extensions for Poseidon tweaked for Sorceror, a producer and consumer implementation for Kafka >= 0.8"
|
|
8
|
-
s.version = "0.4.
|
|
8
|
+
s.version = "0.4.2"
|
|
9
9
|
|
|
10
10
|
s.authors = ["Black Square Media", "Kareem Kouddous"]
|
|
11
11
|
s.email = "kareemknyc@gmail.com"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sorceror_poseidon_cluster
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Black Square Media
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-
|
|
12
|
+
date: 2015-06-07 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: poseidon
|