ruby-kafka 0.7.1.debugcorruption2 → 0.7.1.messagecorruptiondebug
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kafka/broker.rb +1 -7
- data/lib/kafka/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a11d6e742f0e2599fe196d4606b827ea740baf519759486f002733061a5a90a
|
4
|
+
data.tar.gz: 3f553bcf7b87580f9db60c2965b734e511b9a1e90197d9144f26d8d5054cdd61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f92c802af4eb9387cb9a21bbcb2da97521d724b577a7ce930d0c1e4ed732511bce76189024e37bdad94b97ef50306874d83a969a4980ca2b0d08295c4eb1924
|
7
|
+
data.tar.gz: 7de9e95cb0dc164e1aabc87de0ab6ea00eef6db06b5484c8f6fa3e55b7fc26053138193d1fe3625992a864a247ae4869f9de724db33eabf440948e117a0e300a
|
data/lib/kafka/broker.rb
CHANGED
@@ -75,13 +75,7 @@ module Kafka
|
|
75
75
|
|
76
76
|
return if resp.nil?
|
77
77
|
|
78
|
-
|
79
|
-
resp.topics.each do |topic_info|
|
80
|
-
errored = topic_info.partitions.find {|part_info| part_info.error_code == 2 }
|
81
|
-
errored_partitions << errored unless errored.nil?
|
82
|
-
end
|
83
|
-
|
84
|
-
errored_partitions.each do |partition_info|
|
78
|
+
if (_topic_info, partition_info = resp.each_partition.find {|topic_info, part_info| part_info.error_code == 2 })
|
85
79
|
|
86
80
|
@logger.error "Corrupt message code received for #{request} to partition #{partition_info.partition}"
|
87
81
|
|
data/lib/kafka/version.rb
CHANGED