ref https://github.com/karafka/rdkafka-ruby/pull/785
ref #785