Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions lib/fluent/plugin/kafka_producer_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,8 @@ def assign_partitions!

@pending_message_queue.each do |message|
partition = message.partition

partition_count = @cluster.partitions_for(message.topic).count
begin
partition_count = @cluster.partitions_for(message.topic).count

if partition.nil?
partition = @partitioner.call(partition_count, message)
Expand Down
1 change: 1 addition & 0 deletions lib/fluent/plugin/out_kafka2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,7 @@ def write(chunk)
rescue Kafka::UnknownTopicOrPartition
if @use_default_for_unknown_topic && topic != @default_topic
log.warn "'#{topic}' topic not found. Retry with '#{default_topic}' topic"
producer.clear_buffer
topic = @default_topic
retry
end
Expand Down