Skip to content
This repository has been archived by the owner on Jul 17, 2018. It is now read-only.

Commit

Permalink
Log claimed partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
dim committed Mar 18, 2014
1 parent 4a79c9f commit 97a6afd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fluq/input/kafka.rb
Expand Up @@ -15,7 +15,7 @@ class FluQ::Input::Kafka < FluQ::Input::Base
# @option options [Integer] :min_bytes smallest amount of data the server should send us.
# Default: 0 (send us data as soon as it is ready)
# @option options [Class] :consumer_class the consumer class to use.
# Ddefault: FluQ::Kafka::Consumer
# Default: FluQ::Kafka::Consumer
#
# @raises [ArgumentError] when no topic provided
#
Expand Down
7 changes: 7 additions & 0 deletions lib/fluq/kafka/consumer.rb
Expand Up @@ -7,6 +7,13 @@ class Poseidon::Connection
module FluQ
module Kafka
class Consumer < Poseidon::ConsumerGroup
include FluQ::Mixins::Loggable

def rebalance!
super
logger.info "kafka:#{topic}: claimed #{claimed.inspect}"
end

end
end
end
Expand Down

0 comments on commit 97a6afd

Please sign in to comment.