ruby-kafka 0.3.16.beta1 → 0.3.16.beta2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -3
- data/lib/kafka/connection.rb +1 -1
- data/lib/kafka/producer.rb +2 -0
- data/lib/kafka/version.rb +1 -1
- data/ruby-kafka.gemspec +0 -2
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa43ca9dd13cdd1f9f06db58d0799c91dfadf9b2
|
4
|
+
data.tar.gz: 5ca2bc1cf1771373ea10b5e0e8c03a76f048404a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efe7d3b0674fd2ad39e41d1ae0638de877f1ec7a4dd5ed920f566802ee92741350beaba377d040a5b08b35891631a0a11eed4752aaf42ee47019ac62e4f1bc0d
|
7
|
+
data.tar.gz: dec596d15cb047bc7d8c15d2aeed8f952ff098a01a44792da7fb915b87b96d6e8edefdcc94dabf861ac2060f1c535db01eb8a60735fa9dbacd9e5849f6d63c18
|
data/README.md
CHANGED
@@ -2,9 +2,7 @@
|
|
2
2
|
|
3
3
|
A Ruby client library for [Apache Kafka](http://kafka.apache.org/), a distributed log and message bus. The focus of this library will be operational simplicity, with good logging and metrics that can make debugging issues easier.
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
Although parts of this library work with Kafka 0.8 – specifically, the Producer API – it's being tested and developed against Kafka 0.9. The Consumer API will be 0.9 only.
|
5
|
+
Although parts of this library work with Kafka 0.8 – specifically, the Producer API – it's being tested and developed against Kafka 0.9. The Consumer API is Kafka 0.9+ only.
|
8
6
|
|
9
7
|
## Table of Contents
|
10
8
|
|
data/lib/kafka/connection.rb
CHANGED
@@ -11,7 +11,7 @@ module Kafka
|
|
11
11
|
#
|
12
12
|
# Usually you'll need a separate connection to each broker in a cluster, since most
|
13
13
|
# requests must be directed specifically to the broker that is currently leader for
|
14
|
-
# the set of topic partitions you want to produce to or
|
14
|
+
# the set of topic partitions you want to produce to or consume from.
|
15
15
|
#
|
16
16
|
# ## Instrumentation
|
17
17
|
#
|
data/lib/kafka/producer.rb
CHANGED
@@ -320,6 +320,8 @@ module Kafka
|
|
320
320
|
end
|
321
321
|
|
322
322
|
unless @pending_message_queue.empty?
|
323
|
+
# Mark the cluster as stale in order to force a cluster metadata refresh.
|
324
|
+
@cluster.mark_as_stale!
|
323
325
|
raise DeliveryFailed, "Failed to assign partitions to #{@pending_message_queue.size} messages"
|
324
326
|
end
|
325
327
|
|
data/lib/kafka/version.rb
CHANGED
data/ruby-kafka.gemspec
CHANGED
@@ -13,8 +13,6 @@ Gem::Specification.new do |spec|
|
|
13
13
|
|
14
14
|
spec.description = <<-DESC.gsub(/^ /, "").strip
|
15
15
|
A client library for the Kafka distributed commit log.
|
16
|
-
|
17
|
-
Currently, only the Producer API is implemented.
|
18
16
|
DESC
|
19
17
|
|
20
18
|
spec.homepage = "https://github.com/zendesk/ruby-kafka"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-kafka
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.16.
|
4
|
+
version: 0.3.16.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Schierbeck
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-12-
|
11
|
+
date: 2016-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -206,10 +206,7 @@ dependencies:
|
|
206
206
|
- - ">="
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0'
|
209
|
-
description:
|
210
|
-
A client library for the Kafka distributed commit log.
|
211
|
-
|
212
|
-
Currently, only the Producer API is implemented.
|
209
|
+
description: A client library for the Kafka distributed commit log.
|
213
210
|
email:
|
214
211
|
- daniel.schierbeck@gmail.com
|
215
212
|
executables: []
|