ruby-kafka 0.7.1.debugcorruption2 → 0.7.1.messagecorruptiondebug

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 309f92b03ff0cd0687e06bb794ca1881d33abec51cd388145aa45bd8adfe1f89
4
- data.tar.gz: 990eeb531683ceaba2ef825a97847a71b9cc23e59c25bfb817ca98098d4d2a6b
3
+ metadata.gz: 9a11d6e742f0e2599fe196d4606b827ea740baf519759486f002733061a5a90a
4
+ data.tar.gz: 3f553bcf7b87580f9db60c2965b734e511b9a1e90197d9144f26d8d5054cdd61
5
5
  SHA512:
6
- metadata.gz: 35336add7284db579083c04e67fed4a4ecc0274bad6ef015f55c77f84e5feb0846f3dfb3729aeb9a1345cad22ee152b8c6d6e8f77474c497c4300e0441ab3712
7
- data.tar.gz: b4b6ccfdaa9decaabb5225b8b0118a3b9e1c7a2e670748479426e47757413f0f59f2fcbddd2db89f7e7f7189421592536f8b7e2b850154a74aa68c8ef8f572db
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
- errored_partitions = []
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Kafka
4
- VERSION = "0.7.1.debugcorruption2"
4
+ VERSION = "0.7.1.messagecorruptiondebug"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-kafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1.debugcorruption2
4
+ version: 0.7.1.messagecorruptiondebug
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Schierbeck