sorceror_poseidon_cluster 0.4.0 → 0.4.2

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
  SHA1:
3
- metadata.gz: 9ac4eb0c0f6888a859f4f012f47752acb205d505
4
- data.tar.gz: 42f48d6f7a371bd13f4314ae07a264e3e2ed98eb
3
+ metadata.gz: a5ec20edb56fa895f41ba0a2ccf0b9b83e45ef75
4
+ data.tar.gz: c1109431ad4266a4c4bf00c1630e8c77c569f0f4
5
5
  SHA512:
6
- metadata.gz: 696a4c9c05a130fbefa0cee2d16e4342eceaba6c8b831cbf152ee5b7fe23be50ecd4d518c0b4192976344ba75fd2d60308d849cbe1e59a38beaef795cca198a8
7
- data.tar.gz: 102108f9c8a696c3d9e71064459261ce7a08d829211b5518ad41424cffa948589d1ee2bd7348a89df4dbc91e47a15b8180f914dbf87f89cdb8d824ecb65b5e9f
6
+ metadata.gz: fe9162e06b53f5c6916931c7b0e920442c5357a9f21cad7a073f4a68a69263028a5d40de92bd64c9c2cb4d7255fce289384446be44554ca6cc8b6d349b197160
7
+ data.tar.gz: 14cec598bfa3859b8cdb32880af4528eeab9f01be127364284996736cabe52d8df80604787a1c60a00fa2a61676605072292935707b1b4c2ab52c53cb341333d
data/.gitignore CHANGED
@@ -6,3 +6,4 @@ doc/
6
6
  pkg/
7
7
  coverage/
8
8
  *.log
9
+ .ruby-version
@@ -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 options[:claim_timout] || DEFAULT_CLAIM_TIMEOUT do
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.0"
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.0
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-05-14 00:00:00.000000000 Z
12
+ date: 2015-06-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: poseidon