Skip to content
Merged
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
9 changes: 0 additions & 9 deletions spec/integrations/producer_concurrent_first_produce_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,6 @@
closer = Thread.new { producer.close }

unless closer.join(CLOSE_TIMEOUT)
# On JRuby concurrent produces can leave the operations counter of the native client
# unbalanced, so `close` waits forever until
# https://github.com/karafka/rdkafka-ruby/pull/1055 is merged. Remove this branch with it.
# `exit!` skips the `at_exit` close that would wait the same way.
if defined?(JRUBY_VERSION)
puts "SKIP: close did not finish on JRuby, handle destruction not checked"
exit!(0)
end

warn "FAIL: close did not finish in #{CLOSE_TIMEOUT} s"
exit!(1)
end
Expand Down
6 changes: 0 additions & 6 deletions spec/lib/rdkafka/producer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1397,12 +1397,6 @@ def call(_, handle)
after { recording[:active] = false }

it "creates exactly one topic handle per topic and destroys each on close" do
# Concurrent produces leave the operations counter unbalanced on JRuby, so `close` hangs
# until https://github.com/karafka/rdkafka-ruby/pull/1055 is merged. Remove this skip with
# it. Until then
# `spec/integrations/producer_concurrent_first_produce_spec.rb` covers JRuby.
skip "Producer#close can hang after concurrent produces on JRuby" if defined?(JRUBY_VERSION)

start = Queue.new
errors = Queue.new

Expand Down
Loading