poseidon 0.0.2 → 0.0.3
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/CHANGES.md +6 -0
- data/lib/poseidon/connection.rb +1 -1
- data/lib/poseidon/message_conductor.rb +3 -1
- data/lib/poseidon/sync_producer.rb +2 -0
- data/lib/poseidon/version.rb +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: 3d5bb4f86848c948a0395678c366213e43a69129
|
4
|
+
data.tar.gz: f9ef623ef716cfe2197c55cb50031c41eb45f785
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff293ca0f11064c40e3411a57ab8df729013524cf2afb9c2dd018153457f34e200bd8fdfd6ee32aaf4a7af3fa2ce6e19447f9a70275c8bda8332285180e2b509
|
7
|
+
data.tar.gz: 4c4ab22ed0aa8d84cdfce68051788c0cdfb5fb60d468c64740285af4bda8b217473c11e1974aaa4c4220f4fe6ca7542e8c9a71de5e081a8d2e33aa83323bb91f
|
data/CHANGES.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
# 0.0.3
|
2
|
+
|
3
|
+
* Better distribute messages across partitions.
|
4
|
+
* Handle broken connections better.
|
5
|
+
* Gracefully handle attempts to send an empty set of messages.
|
6
|
+
|
1
7
|
# 0.0.2
|
2
8
|
|
3
9
|
* Added ability to create a partitioner consumer for a topic+partition using topic metadata.
|
data/lib/poseidon/connection.rb
CHANGED
@@ -116,7 +116,7 @@ module Poseidon
|
|
116
116
|
buffer = Protocol::RequestBuffer.new
|
117
117
|
request.write(buffer)
|
118
118
|
@socket.write([buffer.to_s.size].pack("N") + buffer.to_s)
|
119
|
-
rescue Errno::EPIPE
|
119
|
+
rescue Errno::EPIPE, Errno::ECONNRESET
|
120
120
|
@socket = nil
|
121
121
|
raise ConnectionFailedError
|
122
122
|
end
|
@@ -12,7 +12,9 @@ module Poseidon
|
|
12
12
|
def initialize(cluster_metadata, partitioner)
|
13
13
|
@cluster_metadata = cluster_metadata
|
14
14
|
@partitioner = partitioner
|
15
|
-
|
15
|
+
|
16
|
+
# Don't always start from partition 0
|
17
|
+
@partition_counter = rand(65536)
|
16
18
|
end
|
17
19
|
|
18
20
|
# Determines which partition a message should be sent to.
|
data/lib/poseidon/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poseidon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bob Potter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|