Skip to content

Failure to decode Kafka 0.9-protocol message #450

@dasch

Description

@dasch
  • Version of Kafka: 0.11
  • Version of ruby-kafka: 0.5.0.beta3
Steps to reproduce
undefined method `/' for nil:NilClass
2017-10-26_08:23:45.34017 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/protocol/message.rb:91:in `decode'
2017-10-26_08:23:45.34041 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/protocol/message_set.rb:31:in `decode'
2017-10-26_08:23:45.34063 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/protocol/fetch_response.rb:58:in `block (2 levels) in decode'
2017-10-26_08:23:45.34086 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/protocol/decoder.rb:61:in `times'
2017-10-26_08:23:45.34108 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/protocol/decoder.rb:61:in `each'
2017-10-26_08:23:45.34129 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/protocol/decoder.rb:61:in `map'
2017-10-26_08:23:45.34151 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/protocol/decoder.rb:61:in `array'
2017-10-26_08:23:45.34172 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/protocol/fetch_response.rb:52:in `block in decode'
2017-10-26_08:23:45.34194 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/protocol/decoder.rb:61:in `times'
2017-10-26_08:23:45.34215 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/protocol/decoder.rb:61:in `each'
2017-10-26_08:23:45.34237 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/protocol/decoder.rb:61:in `map'
2017-10-26_08:23:45.34258 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/protocol/decoder.rb:61:in `array'
2017-10-26_08:23:45.34280 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/protocol/fetch_response.rb:49:in `decode'
2017-10-26_08:23:45.34301 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/connection.rb:197:in `read_response'
2017-10-26_08:23:45.34324 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/connection.rb:209:in `block in wait_for_response'
2017-10-26_08:23:45.34344 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/connection.rb:208:in `loop'
2017-10-26_08:23:45.34365 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/connection.rb:208:in `wait_for_response'
2017-10-26_08:23:45.34391 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/connection.rb:106:in `block in send_request'
2017-10-26_08:23:45.34412 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/notifications.rb:164:in `block in instrument'
2017-10-26_08:23:45.34432 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
2017-10-26_08:23:45.34453 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/activesupport-5.0.6/lib/active_support/notifications.rb:164:in `instrument'
2017-10-26_08:23:45.34474 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/instrumenter.rb:19:in `instrument'
2017-10-26_08:23:45.34496 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/connection.rb:97:in `send_request'
2017-10-26_08:23:45.34519 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/broker.rb:44:in `fetch_messages'
2017-10-26_08:23:45.34540 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/fetch_operation.rb:72:in `block in execute'
2017-10-26_08:23:45.34560 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/fetch_operation.rb:63:in `each'
2017-10-26_08:23:45.34582 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/fetch_operation.rb:63:in `flat_map'
2017-10-26_08:23:45.35168 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/fetch_operation.rb:63:in `execute'
2017-10-26_08:23:45.35197 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/consumer.rb:409:in `fetch_batches'
2017-10-26_08:23:45.35219 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/consumer.rb:183:in `block in each_message'
2017-10-26_08:23:45.35240 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/consumer.rb:327:in `consumer_loop'
2017-10-26_08:23:45.35264 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/ruby-kafka-0.5.0.beta3/lib/kafka/consumer.rb:182:in `each_message'
2017-10-26_08:23:45.35286 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/racecar-0.3.3/lib/racecar/runner.rb:54:in `run'
2017-10-26_08:23:45.35309 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/racecar-0.3.3/lib/racecar.rb:27:in `run'
2017-10-26_08:23:45.35838 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/racecar-0.3.3/lib/racecar/cli.rb:59:in `run'
2017-10-26_08:23:45.35872 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/racecar-0.3.3/lib/racecar/cli.rb:10:in `main'
2017-10-26_08:23:45.35894 help_center_racecar_account_info_consumer:/data/zendesk_help_center/current/vendor/bundle/ruby/2.4.0/gems/racecar-0.3.3/exe/racecar:9:in `<top (required)>'
2017-10-26_08:23:45.35914 help_center_racecar_account_info_consumer:bin/racecar:17:in `load'
2017-10-26_08:23:45.35936 help_center_racecar_account_info_consumer:bin/racecar:17:in `<main>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions